testing options both for hosts and ips
This commit is contained in:
@@ -19,11 +19,11 @@ ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/"
|
|||||||
<IfVersion >= 2.3>
|
<IfVersion >= 2.3>
|
||||||
<RequireAll>
|
<RequireAll>
|
||||||
Require all granted
|
Require all granted
|
||||||
<% if @ng_required_hosts != undef -%>
|
<% if @ng_required_hosts != '' -%>
|
||||||
<% @ng_required_hosts.each do |required_host| -%>
|
<% @ng_required_hosts.each do |required_host| -%>
|
||||||
Require host <%= required_host %>
|
Require host <%= required_host %>
|
||||||
<% end end -%>
|
<% end end -%>
|
||||||
<% if @ng_required_ips != undef -%>
|
<% if @ng_required_ips != '' -%>
|
||||||
<% @ng_required_ips.each do |required_ips| -%>
|
<% @ng_required_ips.each do |required_ips| -%>
|
||||||
Require ip <%= required_ips %>
|
Require ip <%= required_ips %>
|
||||||
<% end end -%>
|
<% end end -%>
|
||||||
@@ -56,11 +56,11 @@ Alias /nagios "/usr/share/nagios/html"
|
|||||||
<IfVersion >= 2.3>
|
<IfVersion >= 2.3>
|
||||||
<RequireAll>
|
<RequireAll>
|
||||||
Require all granted
|
Require all granted
|
||||||
<% if @ng_required_hosts != undef -%>
|
<% if @ng_required_hosts != '' -%>
|
||||||
<% @ng_required_hosts.each do |required_host| -%>
|
<% @ng_required_hosts.each do |required_host| -%>
|
||||||
Require host <%= required_host %>
|
Require host <%= required_host %>
|
||||||
<% end end -%>
|
<% end end -%>
|
||||||
<% if @ng_required_ips != undef %>
|
<% if @ng_required_ips != '' %>
|
||||||
<% @ng_required_ips.each do |required_ips| -%>
|
<% @ng_required_ips.each do |required_ips| -%>
|
||||||
Require ip <%= required_ips %>
|
Require ip <%= required_ips %>
|
||||||
<% end end -%>
|
<% end end -%>
|
||||||
|
|||||||
Reference in New Issue
Block a user