finished nagios.conf
This commit is contained in:
@@ -196,9 +196,10 @@
|
|||||||
# policies. only effective if selinux is enabled.
|
# policies. only effective if selinux is enabled.
|
||||||
# @param [string] ng_required_hosts String of **__FQDNs__** for hosts which
|
# @param [string] ng_required_hosts String of **__FQDNs__** for hosts which
|
||||||
# should be allowed/required. Requires format
|
# should be allowed/required. Requires format
|
||||||
# 'host1.example.com host2.example.com'
|
# 'host1.example.com host2.example.com'. If you want no restriction, chose 'all'.
|
||||||
# @param [string] ng_required_ips string of **__Ip addresses __** for hosts which
|
# @param [string] ng_required_ips string of **__Ip addresses __** for hosts which
|
||||||
# should be allowed/reqired. Requires format 'ipaddress ip address range'
|
# should be allowed/reqired. Requires format 'ipaddress ip address range'.
|
||||||
|
# If you want no restriction, choose '0.0.0.0/0'
|
||||||
# @param [boolean] ng_disable_welcome Whether the regular welcome screen should
|
# @param [boolean] ng_disable_welcome Whether the regular welcome screen should
|
||||||
# be disabled. this is required for the nagios http check on the nagios server
|
# be disabled. this is required for the nagios http check on the nagios server
|
||||||
# to be successful.
|
# to be successful.
|
||||||
|
|||||||
@@ -33,11 +33,12 @@ ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/"
|
|||||||
</IfVersion>
|
</IfVersion>
|
||||||
<IfVersion < 2.3>
|
<IfVersion < 2.3>
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from all
|
<% unless @ng_required_hosts.empty? -%>
|
||||||
# Order deny,allow
|
Allow from <%= @ng_required_hosts %>
|
||||||
# Deny from all
|
<% end -%>
|
||||||
# Allow from 127.0.0.1
|
<% unless @ng_required_ips.empty? -%>
|
||||||
|
Alloow from <%= @ng_required_ips %>
|
||||||
|
<% end -%>
|
||||||
AuthName "Nagios Access"
|
AuthName "Nagios Access"
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
AuthUserFile /etc/nagios/passwd
|
AuthUserFile /etc/nagios/passwd
|
||||||
@@ -48,7 +49,11 @@ ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/"
|
|||||||
Alias /nagios "/usr/share/nagios/html"
|
Alias /nagios "/usr/share/nagios/html"
|
||||||
|
|
||||||
<Directory "/usr/share/nagios/html">
|
<Directory "/usr/share/nagios/html">
|
||||||
|
<% if @ng_use_https == true -%>
|
||||||
|
SSLRequireSSL
|
||||||
|
<% else -%>
|
||||||
# SSLRequireSSL
|
# SSLRequireSSL
|
||||||
|
<% end -%>
|
||||||
Options None
|
Options None
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
<IfVersion >= 2.3>
|
<IfVersion >= 2.3>
|
||||||
@@ -68,11 +73,12 @@ Alias /nagios "/usr/share/nagios/html"
|
|||||||
</IfVersion>
|
</IfVersion>
|
||||||
<IfVersion < 2.3>
|
<IfVersion < 2.3>
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from all
|
<% unless @ng_required_hosts.empty? -%>
|
||||||
# Order deny,allow
|
Allow from <%= @ng_required_hosts %>
|
||||||
# Deny from all
|
<% end -%>
|
||||||
# Allow from 127.0.0.1
|
<% unless @ng_required_ips.empty? -%>
|
||||||
|
Alloow from <%= @ng_required_ips %>
|
||||||
|
<% end -%>
|
||||||
AuthName "Nagios Access"
|
AuthName "Nagios Access"
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
AuthUserFile /etc/nagios/passwd
|
AuthUserFile /etc/nagios/passwd
|
||||||
|
|||||||
Reference in New Issue
Block a user