diff --git a/templates/httpd/nagios_conf.erb b/templates/httpd/nagios_conf.erb index 1884734..a310523 100644 --- a/templates/httpd/nagios_conf.erb +++ b/templates/httpd/nagios_conf.erb @@ -23,7 +23,7 @@ ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/" Require host <%= @ng_required_hosts %> <% end -%> <% unless @ng_required_ips.empty? -%> - Require ip <%= @ng_required_ip %> + Require ip <%= @ng_required_ips %> <% end -%> AuthName "Nagios Access" AuthType Basic @@ -58,7 +58,7 @@ Alias /nagios "/usr/share/nagios/html" Require host <%= @ng_required_hosts %> <% end -%> <% unless @ng_required_ips.empty? -%> - Require ip <%= @ng_required_ip %> + Require ip <%= @ng_required_ips %> <% end -%> AuthName "Nagios Access" AuthType Basic