le1t0-deprec 2.1.6.001
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +444 -0
- data/COPYING +19 -0
- data/LICENSE +339 -0
- data/README +154 -0
- data/THANKS +17 -0
- data/bin/depify +139 -0
- data/docs/EXAMPLE-installing_tracks.txt +41 -0
- data/docs/README.nagios +22 -0
- data/docs/README.rails +17 -0
- data/docs/config_gen_explained.txt +39 -0
- data/docs/deprec-1.x/deprec-1.x.quickstart +50 -0
- data/docs/deprec-1.x/notes.txt +12 -0
- data/docs/old/deprec_banner.gif +0 -0
- data/docs/windows_linux.txt +350 -0
- data/docs/xen/traffic_monitoring_with_vnstat.txt +95 -0
- data/docs/xen/xen-tools-notes.txt +31 -0
- data/docs/xen/xen_on_hardy.txt +39 -0
- data/lib/deprec.rb +42 -0
- data/lib/deprec/capistrano_extensions.rb +446 -0
- data/lib/deprec/recipes.rb +7 -0
- data/lib/deprec/recipes/aoe.rb +79 -0
- data/lib/deprec/recipes/app/mongrel.rb +213 -0
- data/lib/deprec/recipes/app/passenger.rb +190 -0
- data/lib/deprec/recipes/ar_sendmail.rb +67 -0
- data/lib/deprec/recipes/aspell.rb +22 -0
- data/lib/deprec/recipes/canonical.rb +68 -0
- data/lib/deprec/recipes/cap.rb +39 -0
- data/lib/deprec/recipes/chef.rb +68 -0
- data/lib/deprec/recipes/collectd.rb +112 -0
- data/lib/deprec/recipes/db/couchdb.rb +107 -0
- data/lib/deprec/recipes/db/mysql.rb +194 -0
- data/lib/deprec/recipes/db/postgresql.rb +104 -0
- data/lib/deprec/recipes/db/sqlite.rb +37 -0
- data/lib/deprec/recipes/ddclient.rb +51 -0
- data/lib/deprec/recipes/deprec.rb +167 -0
- data/lib/deprec/recipes/deprecated.rb +71 -0
- data/lib/deprec/recipes/drbd.rb +137 -0
- data/lib/deprec/recipes/dummy.rb +22 -0
- data/lib/deprec/recipes/example.rb +115 -0
- data/lib/deprec/recipes/git.rb +97 -0
- data/lib/deprec/recipes/gitosis.rb.disabled +55 -0
- data/lib/deprec/recipes/glusterfs.rb +176 -0
- data/lib/deprec/recipes/god.rb +70 -0
- data/lib/deprec/recipes/haproxy.rb +115 -0
- data/lib/deprec/recipes/heartbeat.rb +138 -0
- data/lib/deprec/recipes/imagemagick/imagemagick_bin.rb +24 -0
- data/lib/deprec/recipes/imagemagick/imagemagick_src.rb +39 -0
- data/lib/deprec/recipes/integrity.rb +108 -0
- data/lib/deprec/recipes/iptables.rb +94 -0
- data/lib/deprec/recipes/java.rb +23 -0
- data/lib/deprec/recipes/keepalived.rb +78 -0
- data/lib/deprec/recipes/ldap.rb +52 -0
- data/lib/deprec/recipes/logrotate.rb +56 -0
- data/lib/deprec/recipes/lvm.rb +20 -0
- data/lib/deprec/recipes/memcache.rb +49 -0
- data/lib/deprec/recipes/mongodb.rb +94 -0
- data/lib/deprec/recipes/monit.rb +135 -0
- data/lib/deprec/recipes/mysql_proxy.rb +67 -0
- data/lib/deprec/recipes/nagios.rb +361 -0
- data/lib/deprec/recipes/network.rb +116 -0
- data/lib/deprec/recipes/ntp.rb +103 -0
- data/lib/deprec/recipes/php.rb +58 -0
- data/lib/deprec/recipes/postfix.rb +115 -0
- data/lib/deprec/recipes/profiles.rb +125 -0
- data/lib/deprec/recipes/raid/amcc_3ware.rb +21 -0
- data/lib/deprec/recipes/rails.rb +330 -0
- data/lib/deprec/recipes/redhat_cluster.rb +228 -0
- data/lib/deprec/recipes/redis.rb +90 -0
- data/lib/deprec/recipes/ruby/mri.rb +55 -0
- data/lib/deprec/recipes/ruby/ree.rb +40 -0
- data/lib/deprec/recipes/rvm.rb +32 -0
- data/lib/deprec/recipes/s3utils.rb +63 -0
- data/lib/deprec/recipes/sphinx/thinking_sphinx.rb +105 -0
- data/lib/deprec/recipes/sphinx/ultrasphinx.rb +86 -0
- data/lib/deprec/recipes/ssh.rb +147 -0
- data/lib/deprec/recipes/ssl.rb +56 -0
- data/lib/deprec/recipes/starling.rb +119 -0
- data/lib/deprec/recipes/svn.rb +171 -0
- data/lib/deprec/recipes/syslog.rb +63 -0
- data/lib/deprec/recipes/trac.rb.disabled +277 -0
- data/lib/deprec/recipes/tsung.rb +74 -0
- data/lib/deprec/recipes/ubuntu.rb +90 -0
- data/lib/deprec/recipes/users.rb +90 -0
- data/lib/deprec/recipes/utils.rb +58 -0
- data/lib/deprec/recipes/vnstat.rb +85 -0
- data/lib/deprec/recipes/web/apache.rb +143 -0
- data/lib/deprec/recipes/web/nginx.rb +172 -0
- data/lib/deprec/recipes/wordpress.rb.notworking +96 -0
- data/lib/deprec/recipes/wpmu.rb +103 -0
- data/lib/deprec/recipes/xen.rb +364 -0
- data/lib/deprec/recipes/xentools.rb +101 -0
- data/lib/deprec/recipes_minus_rails.rb +125 -0
- data/lib/deprec/templates/aoe/aoe-init +55 -0
- data/lib/deprec/templates/aoe/fence_aoemask +351 -0
- data/lib/deprec/templates/apache/namevirtualhosts.conf +5 -0
- data/lib/deprec/templates/apache/ports.conf.erb +5 -0
- data/lib/deprec/templates/apache/status.conf.erb +17 -0
- data/lib/deprec/templates/ar_sendmail/logrotate.conf.erb +9 -0
- data/lib/deprec/templates/ar_sendmail/monit.conf.erb +5 -0
- data/lib/deprec/templates/chef/chef.json.erb +1 -0
- data/lib/deprec/templates/chef/solo.rb +2 -0
- data/lib/deprec/templates/collectd/collectd-init.d +153 -0
- data/lib/deprec/templates/collectd/collectd.conf.erb +686 -0
- data/lib/deprec/templates/ddclient/ddclient.conf.erb +11 -0
- data/lib/deprec/templates/ddclient/ddclient.erb +15 -0
- data/lib/deprec/templates/deprec/caprc.erb +14 -0
- data/lib/deprec/templates/drbd/drbd.conf.erb +531 -0
- data/lib/deprec/templates/glusterfs/glusterfsd-init.erb +95 -0
- data/lib/deprec/templates/gnbd_client/cluster.conf.erb +21 -0
- data/lib/deprec/templates/gnbd_client/clvm-default.erb +3 -0
- data/lib/deprec/templates/gnbd_client/cman-default.erb +6 -0
- data/lib/deprec/templates/gnbd_client/gnbdimports.conf.erb +1 -0
- data/lib/deprec/templates/gnbd_server/cluster.conf.erb +20 -0
- data/lib/deprec/templates/gnbd_server/clvm-default.erb +3 -0
- data/lib/deprec/templates/gnbd_server/cman-default.erb +6 -0
- data/lib/deprec/templates/gnbd_server/gnbd-server-default.erb +1 -0
- data/lib/deprec/templates/gnbd_server/gnbdexports.conf.erb +1 -0
- data/lib/deprec/templates/god/god-conf.erb +2 -0
- data/lib/deprec/templates/god/god-init.erb +47 -0
- data/lib/deprec/templates/haproxy/haproxy-init.d +120 -0
- data/lib/deprec/templates/haproxy/haproxy.cfg.erb +31 -0
- data/lib/deprec/templates/heartbeat/authkeys.erb +2 -0
- data/lib/deprec/templates/heartbeat/ha.cf.erb +15 -0
- data/lib/deprec/templates/heartbeat/haresources.erb +1 -0
- data/lib/deprec/templates/integrity/apache_vhost.erb +4 -0
- data/lib/deprec/templates/integrity/config.ru.erb +21 -0
- data/lib/deprec/templates/integrity/config.yml.erb +43 -0
- data/lib/deprec/templates/iptables/firewall-default.erb +13 -0
- data/lib/deprec/templates/iptables/firewall-init.erb +171 -0
- data/lib/deprec/templates/keepalived/keepalived.conf.erb +18 -0
- data/lib/deprec/templates/logrotate/logrotate.conf.erb +32 -0
- data/lib/deprec/templates/mongodb/mongodb-init.d +88 -0
- data/lib/deprec/templates/mongrel/apache_vhost.conf.erb +148 -0
- data/lib/deprec/templates/mongrel/logrotate.conf.erb +11 -0
- data/lib/deprec/templates/mongrel/mongrel_cluster-init-script +54 -0
- data/lib/deprec/templates/mongrel/mongrel_cluster.yml.erb +10 -0
- data/lib/deprec/templates/mongrel/monit.conf.erb +17 -0
- data/lib/deprec/templates/mongrel/nginx_vhost.conf.erb +41 -0
- data/lib/deprec/templates/monit/monit-init-script +104 -0
- data/lib/deprec/templates/monit/monitrc.erb +250 -0
- data/lib/deprec/templates/monit/nothing.monitrc +0 -0
- data/lib/deprec/templates/mysql/create_databases.sql +20 -0
- data/lib/deprec/templates/mysql/database.yml.prod +6 -0
- data/lib/deprec/templates/mysql/database.yml.stage +6 -0
- data/lib/deprec/templates/mysql/my.cnf.erb +140 -0
- data/lib/deprec/templates/mysql/sphinx.conf.prod +542 -0
- data/lib/deprec/templates/mysql/sphinx.conf.stage +542 -0
- data/lib/deprec/templates/mysql_proxy/mysql-proxy-default.erb +4 -0
- data/lib/deprec/templates/nagios/README +32 -0
- data/lib/deprec/templates/nagios/cgi.cfg.erb +357 -0
- data/lib/deprec/templates/nagios/check_linux_free_memory.pl +118 -0
- data/lib/deprec/templates/nagios/check_mongrel_cluster.rb +82 -0
- data/lib/deprec/templates/nagios/htpasswd.users +1 -0
- data/lib/deprec/templates/nagios/mrtg.cfg +180 -0
- data/lib/deprec/templates/nagios/nagios.cfg.erb +1325 -0
- data/lib/deprec/templates/nagios/nrpe.cfg.erb +222 -0
- data/lib/deprec/templates/nagios/nrpe.xinetd.erb +16 -0
- data/lib/deprec/templates/nagios/objects/commands.cfg.erb +265 -0
- data/lib/deprec/templates/nagios/objects/contacts.cfg.erb +89 -0
- data/lib/deprec/templates/nagios/objects/hosts.cfg.erb +114 -0
- data/lib/deprec/templates/nagios/objects/localhost.cfg.erb +116 -0
- data/lib/deprec/templates/nagios/objects/services.cfg.erb +165 -0
- data/lib/deprec/templates/nagios/objects/timeperiods.cfg.erb +94 -0
- data/lib/deprec/templates/nagios/resource.cfg.erb +34 -0
- data/lib/deprec/templates/network/hostname.erb +1 -0
- data/lib/deprec/templates/network/hosts.erb +2 -0
- data/lib/deprec/templates/network/interfaces.erb +18 -0
- data/lib/deprec/templates/network/resolv.conf.erb +6 -0
- data/lib/deprec/templates/nginx/logrotate.conf.erb +13 -0
- data/lib/deprec/templates/nginx/mime.types.erb +70 -0
- data/lib/deprec/templates/nginx/nginx-init-script +62 -0
- data/lib/deprec/templates/nginx/nginx.conf.erb +125 -0
- data/lib/deprec/templates/nginx/nginx.logrotate.d +12 -0
- data/lib/deprec/templates/nginx/nothing.conf +1 -0
- data/lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb +41 -0
- data/lib/deprec/templates/ntp/ntp.conf.erb +42 -0
- data/lib/deprec/templates/passenger/apache_vhost.erb +29 -0
- data/lib/deprec/templates/passenger/logrotate.conf.erb +12 -0
- data/lib/deprec/templates/passenger/passenger.conf.erb +21 -0
- data/lib/deprec/templates/passenger/passenger.load.erb +3 -0
- data/lib/deprec/templates/postfix/aliases.erb +3 -0
- data/lib/deprec/templates/postfix/dynamicmaps.cf.erb +8 -0
- data/lib/deprec/templates/postfix/main.cf.erb +36 -0
- data/lib/deprec/templates/postfix/master.cf.erb +77 -0
- data/lib/deprec/templates/redis/redis-conf.erb +132 -0
- data/lib/deprec/templates/redis/redis-init.erb +50 -0
- data/lib/deprec/templates/s3utils/s3cfg +35 -0
- data/lib/deprec/templates/s3utils/s3config.yml +3 -0
- data/lib/deprec/templates/sphinx/monit.conf.erb +5 -0
- data/lib/deprec/templates/ssh/ssh_config.erb +50 -0
- data/lib/deprec/templates/ssh/sshd_config.erb +78 -0
- data/lib/deprec/templates/ssl/make-ssl-cert +138 -0
- data/lib/deprec/templates/ssl/ssl-cert-snakeoil.key +15 -0
- data/lib/deprec/templates/ssl/ssl-cert-snakeoil.pem +19 -0
- data/lib/deprec/templates/starling/monit.conf.erb +14 -0
- data/lib/deprec/templates/starling/starling-init-script.erb +71 -0
- data/lib/deprec/templates/subversion/svn.apache.vhost.erb +43 -0
- data/lib/deprec/templates/syslog/syslog.conf.erb +71 -0
- data/lib/deprec/templates/syslog/syslogd.erb +13 -0
- data/lib/deprec/templates/trac/apache_vhost.conf.erb +24 -0
- data/lib/deprec/templates/trac/nginx_vhost.conf.erb +26 -0
- data/lib/deprec/templates/trac/trac.ini.erb +169 -0
- data/lib/deprec/templates/trac/trac_deprec.png +0 -0
- data/lib/deprec/templates/trac/tracd-init.erb +43 -0
- data/lib/deprec/templates/trac/users.htdigest.erb +0 -0
- data/lib/deprec/templates/tsung/tsung.xml.erb +47 -0
- data/lib/deprec/templates/vnstat/config.php +57 -0
- data/lib/deprec/templates/wordpress/apache2_wordpress_vhost.conf.erb +31 -0
- data/lib/deprec/templates/wordpress/wp-config.php.erb +31 -0
- data/lib/deprec/templates/wpmu/apache_vhost.conf.erb +13 -0
- data/lib/deprec/templates/xen/network-bridge-wrapper +3 -0
- data/lib/deprec/templates/xen/xend-config.sxp.erb +195 -0
- data/lib/deprec/templates/xen/xend-init.erb +57 -0
- data/lib/deprec/templates/xen/xendomains.erb +137 -0
- data/lib/deprec/templates/xentools/100-ubuntu-setup +26 -0
- data/lib/deprec/templates/xentools/15-disable-hwclock +40 -0
- data/lib/deprec/templates/xentools/30-disable-gettys +57 -0
- data/lib/deprec/templates/xentools/31-ubuntu-setup +32 -0
- data/lib/deprec/templates/xentools/40-setup-networking +145 -0
- data/lib/deprec/templates/xentools/98-custom +17 -0
- data/lib/deprec/templates/xentools/xen-tools.conf.erb +278 -0
- data/lib/deprec/templates/xentools/xm.tmpl.erb +138 -0
- data/lib/deprec_cmd_completion.sh +26 -0
- data/lib/deprec_minus_rails.rb +12 -0
- data/lib/vmbuilder_plugins/all.rb +20 -0
- data/lib/vmbuilder_plugins/apt.rb +93 -0
- data/lib/vmbuilder_plugins/emerge.rb +76 -0
- data/lib/vmbuilder_plugins/gem.rb +100 -0
- data/lib/vmbuilder_plugins/std.rb +203 -0
- metadata +304 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
# Exit status
|
6
|
+
OK = 0
|
7
|
+
WARNING = 1
|
8
|
+
CRITICAL = 2
|
9
|
+
|
10
|
+
# use options instead
|
11
|
+
application = ARGV[0]
|
12
|
+
cluster_config_file = "/etc/mongrel_cluster/#{application}.yml"
|
13
|
+
|
14
|
+
def running?(pid)
|
15
|
+
# check if pid is running
|
16
|
+
ps_output = `ps -p #{pid}`
|
17
|
+
ps_output =~ /mongrel_rails/
|
18
|
+
end
|
19
|
+
|
20
|
+
def chdir_cwd
|
21
|
+
pwd = Dir.pwd
|
22
|
+
Dir.chdir(@options["cwd"]) if @options["cwd"]
|
23
|
+
yield
|
24
|
+
Dir.chdir(pwd) if @options["cwd"]
|
25
|
+
end
|
26
|
+
|
27
|
+
def read_pid(port)
|
28
|
+
pid_file = port_pid_file(port)
|
29
|
+
pid = 0
|
30
|
+
chdir_cwd do
|
31
|
+
pid = File.read(pid_file)
|
32
|
+
end
|
33
|
+
pid
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
# Load cluster config from YAML file
|
38
|
+
begin
|
39
|
+
cluster_config = YAML.load_file(cluster_config_file)
|
40
|
+
port = cluster_config['port'].to_i
|
41
|
+
servers = cluster_config['servers']
|
42
|
+
ports = (port..port+servers-1).collect
|
43
|
+
if cluster_config['pid_file'].match(/^\//)
|
44
|
+
pid_file_base = cluster_config['pid_file']
|
45
|
+
else
|
46
|
+
pid_file_base = File.join(cluster_config['cwd'], cluster_config['pid_file'])
|
47
|
+
end
|
48
|
+
rescue
|
49
|
+
print 'CRITICAL'
|
50
|
+
puts " Could not load mongrel cluster file (#{cluster_config_file})"
|
51
|
+
exit CRITICAL
|
52
|
+
end
|
53
|
+
|
54
|
+
# Check each mongrel
|
55
|
+
running = []
|
56
|
+
not_running = []
|
57
|
+
|
58
|
+
ports.each {|port|
|
59
|
+
pidfile = pid_file_base.sub('.pid',".#{port}.pid")
|
60
|
+
if File.readable?(pidfile)
|
61
|
+
pid = File.read(pidfile)
|
62
|
+
if running?(pid)
|
63
|
+
running << port
|
64
|
+
else
|
65
|
+
not_running << port
|
66
|
+
end
|
67
|
+
else
|
68
|
+
not_running << port
|
69
|
+
end
|
70
|
+
}
|
71
|
+
|
72
|
+
# Print response and exit
|
73
|
+
|
74
|
+
if not_running.empty?
|
75
|
+
print 'OK '
|
76
|
+
puts "mongrel running on ports #{running.join(', ')}"
|
77
|
+
exit OK
|
78
|
+
else
|
79
|
+
print 'CRITICAL '
|
80
|
+
puts "mongrel not running on #{not_running.join(', ')}. #{'Running on ' + running.join(', ') unless running.empty?}"
|
81
|
+
exit CRITICAL
|
82
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
nagiosadmin:wSjr.2Tk17iAU
|
@@ -0,0 +1,180 @@
|
|
1
|
+
###################################################################
|
2
|
+
# MRTG Graphs: Nagios 3.0.6 Statistics
|
3
|
+
#
|
4
|
+
# You can add the following entries to your MRTG config file to
|
5
|
+
# begin graphing several Nagios statistics which can be useful for
|
6
|
+
# debugging and trending purposes. The nagiostats binary (which is
|
7
|
+
# included as part of the Nagios distribution) is used to generate
|
8
|
+
# the data.
|
9
|
+
###################################################################
|
10
|
+
|
11
|
+
# Service Latency and Execution Time
|
12
|
+
Target[nagios-a]: `/usr/local/nagios/bin/nagiostats --mrtg --data=AVGACTSVCLAT,AVGACTSVCEXT,PROGRUNTIME,NAGIOSVERPID`
|
13
|
+
MaxBytes[nagios-a]: 100000
|
14
|
+
Title[nagios-a]: Average Service Check Latency and Execution Time
|
15
|
+
PageTop[nagios-a]: <H1>Average Service Check Latency and Execution Time</H1>
|
16
|
+
Options[nagios-a]: growright,gauge,nopercent
|
17
|
+
YLegend[nagios-a]: Milliseconds
|
18
|
+
ShortLegend[nagios-a]:
|
19
|
+
LegendI[nagios-a]: Latency:
|
20
|
+
LegendO[nagios-a]: Execution Time:
|
21
|
+
Legend1[nagios-a]: Latency
|
22
|
+
Legend2[nagios-a]: Execution Time
|
23
|
+
Legend3[nagios-a]: Maximal 5 Minute Latency
|
24
|
+
Legend4[nagios-a]: Maximal 5 Minute Execution Time
|
25
|
+
|
26
|
+
|
27
|
+
# Service Percent State Change
|
28
|
+
Target[nagios-b]: `/usr/local/nagios/bin/nagiostats --mrtg --data=AVGACTSVCPSC,AVGPSVSVCPSC,PROGRUNTIME,NAGIOSVERPID`
|
29
|
+
MaxBytes[nagios-b]: 100
|
30
|
+
Title[nagios-b]: Average Service State Change
|
31
|
+
PageTop[nagios-b]: <H1>Average Service State Change</H1>
|
32
|
+
Options[nagios-b]: growright,gauge,nopercent
|
33
|
+
YLegend[nagios-b]: Percent
|
34
|
+
ShortLegend[nagios-b]:
|
35
|
+
LegendI[nagios-b]: Active Check % Change:
|
36
|
+
LegendO[nagios-b]: Passive Check % Change:
|
37
|
+
Legend1[nagios-b]: State Change
|
38
|
+
Legend2[nagios-b]: State Change
|
39
|
+
Legend3[nagios-b]: Maximal 5 Minute State Change
|
40
|
+
Legend4[nagios-b]: Maximal 5 Minute State Change
|
41
|
+
|
42
|
+
|
43
|
+
# Host Latency and Execution Time
|
44
|
+
Target[nagios-c]: `/usr/local/nagios/bin/nagiostats --mrtg --data=AVGACTHSTLAT,AVGACTHSTEXT,PROGRUNTIME,NAGIOSVERPID`
|
45
|
+
MaxBytes[nagios-c]: 100000
|
46
|
+
Title[nagios-c]: Average Host Check Latency and Execution Time
|
47
|
+
PageTop[nagios-c]: <H1>Average Host Check Latency and Execution Time</H1>
|
48
|
+
Options[nagios-c]: growright,gauge,nopercent
|
49
|
+
YLegend[nagios-c]: Milliseconds
|
50
|
+
ShortLegend[nagios-c]:
|
51
|
+
LegendI[nagios-c]: Latency:
|
52
|
+
LegendO[nagios-c]: Execution Time:
|
53
|
+
Legend1[nagios-c]: Latency
|
54
|
+
Legend2[nagios-c]: Execution Time
|
55
|
+
Legend3[nagios-c]: Maximal 5 Minute Latency
|
56
|
+
Legend4[nagios-c]: Maximal 5 Minute Execution Time
|
57
|
+
|
58
|
+
|
59
|
+
# Host Percent State Change
|
60
|
+
Target[nagios-d]: `/usr/local/nagios/bin/nagiostats --mrtg --data=AVGACTHSTPSC,AVGPSVHSTPSC,PROGRUNTIME,NAGIOSVERPID`
|
61
|
+
MaxBytes[nagios-d]: 100
|
62
|
+
Title[nagios-d]: Average Host State Change
|
63
|
+
PageTop[nagios-d]: <H1>Average Host State Change</H1>
|
64
|
+
Options[nagios-d]: growright,gauge,nopercent
|
65
|
+
YLegend[nagios-d]: Percent
|
66
|
+
ShortLegend[nagios-d]:
|
67
|
+
LegendI[nagios-d]: Active Check % Change:
|
68
|
+
LegendO[nagios-d]: Passive Check % Change:
|
69
|
+
Legend1[nagios-d]: State Change
|
70
|
+
Legend2[nagios-d]: State Change
|
71
|
+
Legend3[nagios-d]: Maximal 5 Minute State Change
|
72
|
+
Legend4[nagios-d]: Maximal 5 Minute State Change
|
73
|
+
|
74
|
+
|
75
|
+
# Hosts/Services Actively Checked
|
76
|
+
Target[nagios-e]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMHSTACTCHK5M,NUMSVCACTCHK5M,PROGRUNTIME,NAGIOSVERPID`
|
77
|
+
MaxBytes[nagios-e]: 7000
|
78
|
+
Title[nagios-e]: Hosts/Services Actively Checked
|
79
|
+
PageTop[nagios-e]: <H1>Hosts/Services Actively Checked</H1>
|
80
|
+
Options[nagios-e]: growright,gauge,nopercent
|
81
|
+
YLegend[nagios-e]: Total
|
82
|
+
ShortLegend[nagios-e]:
|
83
|
+
LegendI[nagios-e]: Hosts:
|
84
|
+
LegendO[nagios-e]: Services:
|
85
|
+
|
86
|
+
|
87
|
+
# Hosts/Services Passively Checked
|
88
|
+
Target[nagios-f]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMHSTPSVCHK5M,NUMSVCPSVCHK5M,PROGRUNTIME,NAGIOSVERPID`
|
89
|
+
MaxBytes[nagios-f]: 7000
|
90
|
+
Title[nagios-f]: Hosts/Services Passively Checked
|
91
|
+
PageTop[nagios-f]: <H1>Hosts/Services Passively Checked</H1>
|
92
|
+
Options[nagios-f]: growright,gauge,nopercent
|
93
|
+
YLegend[nagios-f]: Total
|
94
|
+
ShortLegend[nagios-f]:
|
95
|
+
LegendI[nagios-f]: Hosts:
|
96
|
+
LegendO[nagios-f]: Services:
|
97
|
+
|
98
|
+
|
99
|
+
# Used/Avail External Command Buffers
|
100
|
+
Target[nagios-g]: `/usr/local/nagios/bin/nagiostats --mrtg --data=TOTCMDBUF,USEDCMDBUF,PROGRUNTIME,NAGIOSVERPID`
|
101
|
+
MaxBytes[nagios-g]: 7000
|
102
|
+
Title[nagios-g]: External Command Buffers
|
103
|
+
PageTop[nagios-g]: <H1>External Command Buffers</H1>
|
104
|
+
Options[nagios-g]: growright,gauge,nopercent
|
105
|
+
YLegend[nagios-g]: Buffers
|
106
|
+
ShortLegend[nagios-g]:
|
107
|
+
LegendI[nagios-g]: Total:
|
108
|
+
LegendO[nagios-g]: Used:
|
109
|
+
|
110
|
+
|
111
|
+
# Active Host Checks
|
112
|
+
Target[nagios-i]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMSACTHSTCHECKS5M,NUMOACTHSTCHECKS5M,PROGRUNTIME,NAGIOSVERPID`
|
113
|
+
MaxBytes[nagios-i]: 7000
|
114
|
+
Title[nagios-i]: Active Host Checks
|
115
|
+
PageTop[nagios-i]: <H1>Active Host Checks</H1>
|
116
|
+
Options[nagios-i]: growright,gauge,nopercent
|
117
|
+
YLegend[nagios-i]: Checks
|
118
|
+
ShortLegend[nagios-i]:
|
119
|
+
LegendI[nagios-i]: Scheduled Checks:
|
120
|
+
LegendO[nagios-i]: On-Demand Checks:
|
121
|
+
|
122
|
+
|
123
|
+
# Active Service Checks
|
124
|
+
Target[nagios-j]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMSACTSVCCHECKS5M,NUMOACTSVCCHECKS5M,PROGRUNTIME,NAGIOSVERPID`
|
125
|
+
MaxBytes[nagios-j]: 7000
|
126
|
+
Title[nagios-j]: Active Service Checks
|
127
|
+
PageTop[nagios-j]: <H1>Active Service Checks</H1>
|
128
|
+
Options[nagios-j]: growright,gauge,nopercent
|
129
|
+
YLegend[nagios-j]: Checks
|
130
|
+
ShortLegend[nagios-j]:
|
131
|
+
LegendI[nagios-j]: Scheduled Checks:
|
132
|
+
LegendO[nagios-j]: On-Demand Checks:
|
133
|
+
|
134
|
+
|
135
|
+
# Passive Host/Service Checks
|
136
|
+
Target[nagios-k]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMPSVHSTCHECKS5M,NUMPSVSVCCHECKS5M,PROGRUNTIME,NAGIOSVERPID`
|
137
|
+
MaxBytes[nagios-k]: 7000
|
138
|
+
Title[nagios-k]: Passive Host/Service Checks
|
139
|
+
PageTop[nagios-k]: <H1>Passive Host/Service Checks</H1>
|
140
|
+
Options[nagios-k]: growright,gauge,nopercent
|
141
|
+
YLegend[nagios-k]: Checks
|
142
|
+
ShortLegend[nagios-k]:
|
143
|
+
LegendI[nagios-k]: Host Checks:
|
144
|
+
LegendO[nagios-k]: Service Checks:
|
145
|
+
|
146
|
+
|
147
|
+
# Cached Host/Service Checks
|
148
|
+
Target[nagios-l]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMCACHEDHSTCHECKS5M,NUMCACHEDSVCCHECKS5M,PROGRUNTIME,NAGIOSVERPID`
|
149
|
+
MaxBytes[nagios-l]: 7000
|
150
|
+
Title[nagios-l]: Cached Host/Service Checks
|
151
|
+
PageTop[nagios-l]: <H1>Cached Host/Service Checks</H1>
|
152
|
+
Options[nagios-l]: growright,gauge,nopercent
|
153
|
+
YLegend[nagios-l]: Checks
|
154
|
+
ShortLegend[nagios-l]:
|
155
|
+
LegendI[nagios-l]: Host Checks:
|
156
|
+
LegendO[nagios-l]: Service Checks:
|
157
|
+
|
158
|
+
|
159
|
+
# External Commands
|
160
|
+
Target[nagios-m]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMEXTCMDS5M,0,PROGRUNTIME,NAGIOSVERPID`
|
161
|
+
MaxBytes[nagios-m]: 7000
|
162
|
+
Title[nagios-m]: External Commands
|
163
|
+
PageTop[nagios-m]: <H1>External Commands</H1>
|
164
|
+
Options[nagios-m]: growright,gauge,nopercent
|
165
|
+
YLegend[nagios-m]: Commands
|
166
|
+
ShortLegend[nagios-m]:
|
167
|
+
LegendI[nagios-m]: Commands:
|
168
|
+
LegendO[nagios-m]:
|
169
|
+
|
170
|
+
|
171
|
+
# Parallel/Service Host Checks
|
172
|
+
Target[nagios-n]: `/usr/local/nagios/bin/nagiostats --mrtg --data=NUMPARHSTCHECKS5M,NUMSERHSTCHECKS5M,PROGRUNTIME,NAGIOSVERPID`
|
173
|
+
MaxBytes[nagios-n]: 7000
|
174
|
+
Title[nagios-n]: Parallel/Serial Host Checks
|
175
|
+
PageTop[nagios-n]: <H1>Parallel/Serial Host Checks</H1>
|
176
|
+
Options[nagios-n]: growright,gauge,nopercent
|
177
|
+
YLegend[nagios-n]: Checks
|
178
|
+
ShortLegend[nagios-n]:
|
179
|
+
LegendI[nagios-n]: Parallel Checks:
|
180
|
+
LegendO[nagios-n]: Serial Checks:
|
@@ -0,0 +1,1325 @@
|
|
1
|
+
##############################################################################
|
2
|
+
#
|
3
|
+
# NAGIOS.CFG - Sample Main Config File for Nagios 3.2.0
|
4
|
+
#
|
5
|
+
# Read the documentation for more information on this configuration
|
6
|
+
# file. I've provided some comments here, but things may not be so
|
7
|
+
# clear without further explanation.
|
8
|
+
#
|
9
|
+
# Last Modified: 12-14-2008
|
10
|
+
#
|
11
|
+
##############################################################################
|
12
|
+
|
13
|
+
|
14
|
+
# LOG FILE
|
15
|
+
# This is the main log file where service and host events are logged
|
16
|
+
# for historical purposes. This should be the first option specified
|
17
|
+
# in the config file!!!
|
18
|
+
|
19
|
+
log_file=/usr/local/nagios/var/nagios.log
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
# OBJECT CONFIGURATION FILE(S)
|
24
|
+
# These are the object configuration files in which you define hosts,
|
25
|
+
# host groups, contacts, contact groups, services, etc.
|
26
|
+
# You can split your object definitions across several config files
|
27
|
+
# if you wish (as shown below), or keep them all in a single config file.
|
28
|
+
|
29
|
+
# You can specify individual object config files as shown below:
|
30
|
+
# cfg_file=/usr/local/nagios/etc/objects/commands.cfg
|
31
|
+
# cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
|
32
|
+
# cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
|
33
|
+
# cfg_file=/usr/local/nagios/etc/objects/templates.cfg
|
34
|
+
|
35
|
+
# Definitions for monitoring the local (Linux) host
|
36
|
+
# cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
|
37
|
+
|
38
|
+
# Definitions for monitoring a Windows machine
|
39
|
+
#cfg_file=/usr/local/nagios/etc/objects/windows.cfg
|
40
|
+
|
41
|
+
# Definitions for monitoring a router/switch
|
42
|
+
#cfg_file=/usr/local/nagios/etc/objects/switch.cfg
|
43
|
+
|
44
|
+
# Definitions for monitoring a network printer
|
45
|
+
#cfg_file=/usr/local/nagios/etc/objects/printer.cfg
|
46
|
+
|
47
|
+
|
48
|
+
# You can also tell Nagios to process all config files (with a .cfg
|
49
|
+
# extension) in a particular directory by using the cfg_dir
|
50
|
+
# directive as shown below:
|
51
|
+
|
52
|
+
cfg_dir=/usr/local/nagios/etc/objects
|
53
|
+
|
54
|
+
|
55
|
+
#cfg_dir=/usr/local/nagios/etc/servers
|
56
|
+
#cfg_dir=/usr/local/nagios/etc/printers
|
57
|
+
#cfg_dir=/usr/local/nagios/etc/switches
|
58
|
+
#cfg_dir=/usr/local/nagios/etc/routers
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
# OBJECT CACHE FILE
|
64
|
+
# This option determines where object definitions are cached when
|
65
|
+
# Nagios starts/restarts. The CGIs read object definitions from
|
66
|
+
# this cache file (rather than looking at the object config files
|
67
|
+
# directly) in order to prevent inconsistencies that can occur
|
68
|
+
# when the config files are modified after Nagios starts.
|
69
|
+
|
70
|
+
object_cache_file=/usr/local/nagios/var/objects.cache
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
# PRE-CACHED OBJECT FILE
|
75
|
+
# This options determines the location of the precached object file.
|
76
|
+
# If you run Nagios with the -p command line option, it will preprocess
|
77
|
+
# your object configuration file(s) and write the cached config to this
|
78
|
+
# file. You can then start Nagios with the -u option to have it read
|
79
|
+
# object definitions from this precached file, rather than the standard
|
80
|
+
# object configuration files (see the cfg_file and cfg_dir options above).
|
81
|
+
# Using a precached object file can speed up the time needed to (re)start
|
82
|
+
# the Nagios process if you've got a large and/or complex configuration.
|
83
|
+
# Read the documentation section on optimizing Nagios to find our more
|
84
|
+
# about how this feature works.
|
85
|
+
|
86
|
+
precached_object_file=/usr/local/nagios/var/objects.precache
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
# RESOURCE FILE
|
91
|
+
# This is an optional resource file that contains $USERx$ macro
|
92
|
+
# definitions. Multiple resource files can be specified by using
|
93
|
+
# multiple resource_file definitions. The CGIs will not attempt to
|
94
|
+
# read the contents of resource files, so information that is
|
95
|
+
# considered to be sensitive (usernames, passwords, etc) can be
|
96
|
+
# defined as macros in this file and restrictive permissions (600)
|
97
|
+
# can be placed on this file.
|
98
|
+
|
99
|
+
resource_file=/usr/local/nagios/etc/resource.cfg
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
# STATUS FILE
|
104
|
+
# This is where the current status of all monitored services and
|
105
|
+
# hosts is stored. Its contents are read and processed by the CGIs.
|
106
|
+
# The contents of the status file are deleted every time Nagios
|
107
|
+
# restarts.
|
108
|
+
|
109
|
+
status_file=/usr/local/nagios/var/status.dat
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
# STATUS FILE UPDATE INTERVAL
|
114
|
+
# This option determines the frequency (in seconds) that
|
115
|
+
# Nagios will periodically dump program, host, and
|
116
|
+
# service status data.
|
117
|
+
|
118
|
+
status_update_interval=10
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
# NAGIOS USER
|
123
|
+
# This determines the effective user that Nagios should run as.
|
124
|
+
# You can either supply a username or a UID.
|
125
|
+
|
126
|
+
nagios_user=nagios
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
# NAGIOS GROUP
|
131
|
+
# This determines the effective group that Nagios should run as.
|
132
|
+
# You can either supply a group name or a GID.
|
133
|
+
|
134
|
+
nagios_group=nagios
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
# EXTERNAL COMMAND OPTION
|
139
|
+
# This option allows you to specify whether or not Nagios should check
|
140
|
+
# for external commands (in the command file defined below). By default
|
141
|
+
# Nagios will *not* check for external commands, just to be on the
|
142
|
+
# cautious side. If you want to be able to use the CGI command interface
|
143
|
+
# you will have to enable this.
|
144
|
+
# Values: 0 = disable commands, 1 = enable commands
|
145
|
+
|
146
|
+
check_external_commands=1
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
# EXTERNAL COMMAND CHECK INTERVAL
|
151
|
+
# This is the interval at which Nagios should check for external commands.
|
152
|
+
# This value works of the interval_length you specify later. If you leave
|
153
|
+
# that at its default value of 60 (seconds), a value of 1 here will cause
|
154
|
+
# Nagios to check for external commands every minute. If you specify a
|
155
|
+
# number followed by an "s" (i.e. 15s), this will be interpreted to mean
|
156
|
+
# actual seconds rather than a multiple of the interval_length variable.
|
157
|
+
# Note: In addition to reading the external command file at regularly
|
158
|
+
# scheduled intervals, Nagios will also check for external commands after
|
159
|
+
# event handlers are executed.
|
160
|
+
# NOTE: Setting this value to -1 causes Nagios to check the external
|
161
|
+
# command file as often as possible.
|
162
|
+
|
163
|
+
#command_check_interval=15s
|
164
|
+
command_check_interval=-1
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
# EXTERNAL COMMAND FILE
|
169
|
+
# This is the file that Nagios checks for external command requests.
|
170
|
+
# It is also where the command CGI will write commands that are submitted
|
171
|
+
# by users, so it must be writeable by the user that the web server
|
172
|
+
# is running as (usually 'nobody'). Permissions should be set at the
|
173
|
+
# directory level instead of on the file, as the file is deleted every
|
174
|
+
# time its contents are processed.
|
175
|
+
|
176
|
+
command_file=/usr/local/nagios/var/rw/nagios.cmd
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
# EXTERNAL COMMAND BUFFER SLOTS
|
181
|
+
# This settings is used to tweak the number of items or "slots" that
|
182
|
+
# the Nagios daemon should allocate to the buffer that holds incoming
|
183
|
+
# external commands before they are processed. As external commands
|
184
|
+
# are processed by the daemon, they are removed from the buffer.
|
185
|
+
|
186
|
+
external_command_buffer_slots=4096
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
# LOCK FILE
|
191
|
+
# This is the lockfile that Nagios will use to store its PID number
|
192
|
+
# in when it is running in daemon mode.
|
193
|
+
|
194
|
+
lock_file=/usr/local/nagios/var/nagios.lock
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
# TEMP FILE
|
199
|
+
# This is a temporary file that is used as scratch space when Nagios
|
200
|
+
# updates the status log, cleans the comment file, etc. This file
|
201
|
+
# is created, used, and deleted throughout the time that Nagios is
|
202
|
+
# running.
|
203
|
+
|
204
|
+
temp_file=/usr/local/nagios/var/nagios.tmp
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
# TEMP PATH
|
209
|
+
# This is path where Nagios can create temp files for service and
|
210
|
+
# host check results, etc.
|
211
|
+
|
212
|
+
temp_path=/tmp
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
# EVENT BROKER OPTIONS
|
217
|
+
# Controls what (if any) data gets sent to the event broker.
|
218
|
+
# Values: 0 = Broker nothing
|
219
|
+
# -1 = Broker everything
|
220
|
+
# <other> = See documentation
|
221
|
+
|
222
|
+
event_broker_options=-1
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
# EVENT BROKER MODULE(S)
|
227
|
+
# This directive is used to specify an event broker module that should
|
228
|
+
# by loaded by Nagios at startup. Use multiple directives if you want
|
229
|
+
# to load more than one module. Arguments that should be passed to
|
230
|
+
# the module at startup are seperated from the module path by a space.
|
231
|
+
#
|
232
|
+
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
233
|
+
# WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING
|
234
|
+
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
235
|
+
#
|
236
|
+
# Do NOT overwrite modules while they are being used by Nagios or Nagios
|
237
|
+
# will crash in a fiery display of SEGFAULT glory. This is a bug/limitation
|
238
|
+
# either in dlopen(), the kernel, and/or the filesystem. And maybe Nagios...
|
239
|
+
#
|
240
|
+
# The correct/safe way of updating a module is by using one of these methods:
|
241
|
+
# 1. Shutdown Nagios, replace the module file, restart Nagios
|
242
|
+
# 2. Delete the original module file, move the new module file into place, restart Nagios
|
243
|
+
#
|
244
|
+
# Example:
|
245
|
+
#
|
246
|
+
# broker_module=<modulepath> [moduleargs]
|
247
|
+
|
248
|
+
#broker_module=/somewhere/module1.o
|
249
|
+
#broker_module=/somewhere/module2.o arg1 arg2=3 debug=0
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
# LOG ROTATION METHOD
|
254
|
+
# This is the log rotation method that Nagios should use to rotate
|
255
|
+
# the main log file. Values are as follows..
|
256
|
+
# n = None - don't rotate the log
|
257
|
+
# h = Hourly rotation (top of the hour)
|
258
|
+
# d = Daily rotation (midnight every day)
|
259
|
+
# w = Weekly rotation (midnight on Saturday evening)
|
260
|
+
# m = Monthly rotation (midnight last day of month)
|
261
|
+
|
262
|
+
log_rotation_method=d
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
# LOG ARCHIVE PATH
|
267
|
+
# This is the directory where archived (rotated) log files should be
|
268
|
+
# placed (assuming you've chosen to do log rotation).
|
269
|
+
|
270
|
+
log_archive_path=/usr/local/nagios/var/archives
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
# LOGGING OPTIONS
|
275
|
+
# If you want messages logged to the syslog facility, as well as the
|
276
|
+
# Nagios log file set this option to 1. If not, set it to 0.
|
277
|
+
|
278
|
+
use_syslog=1
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
# NOTIFICATION LOGGING OPTION
|
283
|
+
# If you don't want notifications to be logged, set this value to 0.
|
284
|
+
# If notifications should be logged, set the value to 1.
|
285
|
+
|
286
|
+
log_notifications=1
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
# SERVICE RETRY LOGGING OPTION
|
291
|
+
# If you don't want service check retries to be logged, set this value
|
292
|
+
# to 0. If retries should be logged, set the value to 1.
|
293
|
+
|
294
|
+
log_service_retries=1
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
# HOST RETRY LOGGING OPTION
|
299
|
+
# If you don't want host check retries to be logged, set this value to
|
300
|
+
# 0. If retries should be logged, set the value to 1.
|
301
|
+
|
302
|
+
log_host_retries=1
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
# EVENT HANDLER LOGGING OPTION
|
307
|
+
# If you don't want host and service event handlers to be logged, set
|
308
|
+
# this value to 0. If event handlers should be logged, set the value
|
309
|
+
# to 1.
|
310
|
+
|
311
|
+
log_event_handlers=1
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
# INITIAL STATES LOGGING OPTION
|
316
|
+
# If you want Nagios to log all initial host and service states to
|
317
|
+
# the main log file (the first time the service or host is checked)
|
318
|
+
# you can enable this option by setting this value to 1. If you
|
319
|
+
# are not using an external application that does long term state
|
320
|
+
# statistics reporting, you do not need to enable this option. In
|
321
|
+
# this case, set the value to 0.
|
322
|
+
|
323
|
+
log_initial_states=0
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
# EXTERNAL COMMANDS LOGGING OPTION
|
328
|
+
# If you don't want Nagios to log external commands, set this value
|
329
|
+
# to 0. If external commands should be logged, set this value to 1.
|
330
|
+
# Note: This option does not include logging of passive service
|
331
|
+
# checks - see the option below for controlling whether or not
|
332
|
+
# passive checks are logged.
|
333
|
+
|
334
|
+
log_external_commands=1
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
# PASSIVE CHECKS LOGGING OPTION
|
339
|
+
# If you don't want Nagios to log passive host and service checks, set
|
340
|
+
# this value to 0. If passive checks should be logged, set
|
341
|
+
# this value to 1.
|
342
|
+
|
343
|
+
log_passive_checks=1
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
# GLOBAL HOST AND SERVICE EVENT HANDLERS
|
348
|
+
# These options allow you to specify a host and service event handler
|
349
|
+
# command that is to be run for every host or service state change.
|
350
|
+
# The global event handler is executed immediately prior to the event
|
351
|
+
# handler that you have optionally specified in each host or
|
352
|
+
# service definition. The command argument is the short name of a
|
353
|
+
# command definition that you define in your host configuration file.
|
354
|
+
# Read the HTML docs for more information.
|
355
|
+
|
356
|
+
#global_host_event_handler=somecommand
|
357
|
+
#global_service_event_handler=somecommand
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
# SERVICE INTER-CHECK DELAY METHOD
|
362
|
+
# This is the method that Nagios should use when initially
|
363
|
+
# "spreading out" service checks when it starts monitoring. The
|
364
|
+
# default is to use smart delay calculation, which will try to
|
365
|
+
# space all service checks out evenly to minimize CPU load.
|
366
|
+
# Using the dumb setting will cause all checks to be scheduled
|
367
|
+
# at the same time (with no delay between them)! This is not a
|
368
|
+
# good thing for production, but is useful when testing the
|
369
|
+
# parallelization functionality.
|
370
|
+
# n = None - don't use any delay between checks
|
371
|
+
# d = Use a "dumb" delay of 1 second between checks
|
372
|
+
# s = Use "smart" inter-check delay calculation
|
373
|
+
# x.xx = Use an inter-check delay of x.xx seconds
|
374
|
+
|
375
|
+
service_inter_check_delay_method=s
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
# MAXIMUM SERVICE CHECK SPREAD
|
380
|
+
# This variable determines the timeframe (in minutes) from the
|
381
|
+
# program start time that an initial check of all services should
|
382
|
+
# be completed. Default is 30 minutes.
|
383
|
+
|
384
|
+
max_service_check_spread=30
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
# SERVICE CHECK INTERLEAVE FACTOR
|
389
|
+
# This variable determines how service checks are interleaved.
|
390
|
+
# Interleaving the service checks allows for a more even
|
391
|
+
# distribution of service checks and reduced load on remote
|
392
|
+
# hosts. Setting this value to 1 is equivalent to how versions
|
393
|
+
# of Nagios previous to 0.0.5 did service checks. Set this
|
394
|
+
# value to s (smart) for automatic calculation of the interleave
|
395
|
+
# factor unless you have a specific reason to change it.
|
396
|
+
# s = Use "smart" interleave factor calculation
|
397
|
+
# x = Use an interleave factor of x, where x is a
|
398
|
+
# number greater than or equal to 1.
|
399
|
+
|
400
|
+
service_interleave_factor=s
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
# HOST INTER-CHECK DELAY METHOD
|
405
|
+
# This is the method that Nagios should use when initially
|
406
|
+
# "spreading out" host checks when it starts monitoring. The
|
407
|
+
# default is to use smart delay calculation, which will try to
|
408
|
+
# space all host checks out evenly to minimize CPU load.
|
409
|
+
# Using the dumb setting will cause all checks to be scheduled
|
410
|
+
# at the same time (with no delay between them)!
|
411
|
+
# n = None - don't use any delay between checks
|
412
|
+
# d = Use a "dumb" delay of 1 second between checks
|
413
|
+
# s = Use "smart" inter-check delay calculation
|
414
|
+
# x.xx = Use an inter-check delay of x.xx seconds
|
415
|
+
|
416
|
+
host_inter_check_delay_method=s
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
# MAXIMUM HOST CHECK SPREAD
|
421
|
+
# This variable determines the timeframe (in minutes) from the
|
422
|
+
# program start time that an initial check of all hosts should
|
423
|
+
# be completed. Default is 30 minutes.
|
424
|
+
|
425
|
+
max_host_check_spread=30
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
# MAXIMUM CONCURRENT SERVICE CHECKS
|
430
|
+
# This option allows you to specify the maximum number of
|
431
|
+
# service checks that can be run in parallel at any given time.
|
432
|
+
# Specifying a value of 1 for this variable essentially prevents
|
433
|
+
# any service checks from being parallelized. A value of 0
|
434
|
+
# will not restrict the number of concurrent checks that are
|
435
|
+
# being executed.
|
436
|
+
|
437
|
+
max_concurrent_checks=0
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
# HOST AND SERVICE CHECK REAPER FREQUENCY
|
442
|
+
# This is the frequency (in seconds!) that Nagios will process
|
443
|
+
# the results of host and service checks.
|
444
|
+
|
445
|
+
check_result_reaper_frequency=10
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
# MAX CHECK RESULT REAPER TIME
|
451
|
+
# This is the max amount of time (in seconds) that a single
|
452
|
+
# check result reaper event will be allowed to run before
|
453
|
+
# returning control back to Nagios so it can perform other
|
454
|
+
# duties.
|
455
|
+
|
456
|
+
max_check_result_reaper_time=30
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
# CHECK RESULT PATH
|
462
|
+
# This is directory where Nagios stores the results of host and
|
463
|
+
# service checks that have not yet been processed.
|
464
|
+
#
|
465
|
+
# Note: Make sure that only one instance of Nagios has access
|
466
|
+
# to this directory!
|
467
|
+
|
468
|
+
check_result_path=/usr/local/nagios/var/spool/checkresults
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
# MAX CHECK RESULT FILE AGE
|
474
|
+
# This option determines the maximum age (in seconds) which check
|
475
|
+
# result files are considered to be valid. Files older than this
|
476
|
+
# threshold will be mercilessly deleted without further processing.
|
477
|
+
|
478
|
+
max_check_result_file_age=3600
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
# CACHED HOST CHECK HORIZON
|
484
|
+
# This option determines the maximum amount of time (in seconds)
|
485
|
+
# that the state of a previous host check is considered current.
|
486
|
+
# Cached host states (from host checks that were performed more
|
487
|
+
# recently that the timeframe specified by this value) can immensely
|
488
|
+
# improve performance in regards to the host check logic.
|
489
|
+
# Too high of a value for this option may result in inaccurate host
|
490
|
+
# states being used by Nagios, while a lower value may result in a
|
491
|
+
# performance hit for host checks. Use a value of 0 to disable host
|
492
|
+
# check caching.
|
493
|
+
|
494
|
+
cached_host_check_horizon=15
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
# CACHED SERVICE CHECK HORIZON
|
499
|
+
# This option determines the maximum amount of time (in seconds)
|
500
|
+
# that the state of a previous service check is considered current.
|
501
|
+
# Cached service states (from service checks that were performed more
|
502
|
+
# recently that the timeframe specified by this value) can immensely
|
503
|
+
# improve performance in regards to predictive dependency checks.
|
504
|
+
# Use a value of 0 to disable service check caching.
|
505
|
+
|
506
|
+
cached_service_check_horizon=15
|
507
|
+
|
508
|
+
|
509
|
+
|
510
|
+
# ENABLE PREDICTIVE HOST DEPENDENCY CHECKS
|
511
|
+
# This option determines whether or not Nagios will attempt to execute
|
512
|
+
# checks of hosts when it predicts that future dependency logic test
|
513
|
+
# may be needed. These predictive checks can help ensure that your
|
514
|
+
# host dependency logic works well.
|
515
|
+
# Values:
|
516
|
+
# 0 = Disable predictive checks
|
517
|
+
# 1 = Enable predictive checks (default)
|
518
|
+
|
519
|
+
enable_predictive_host_dependency_checks=1
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
# ENABLE PREDICTIVE SERVICE DEPENDENCY CHECKS
|
524
|
+
# This option determines whether or not Nagios will attempt to execute
|
525
|
+
# checks of service when it predicts that future dependency logic test
|
526
|
+
# may be needed. These predictive checks can help ensure that your
|
527
|
+
# service dependency logic works well.
|
528
|
+
# Values:
|
529
|
+
# 0 = Disable predictive checks
|
530
|
+
# 1 = Enable predictive checks (default)
|
531
|
+
|
532
|
+
enable_predictive_service_dependency_checks=1
|
533
|
+
|
534
|
+
|
535
|
+
|
536
|
+
# SOFT STATE DEPENDENCIES
|
537
|
+
# This option determines whether or not Nagios will use soft state
|
538
|
+
# information when checking host and service dependencies. Normally
|
539
|
+
# Nagios will only use the latest hard host or service state when
|
540
|
+
# checking dependencies. If you want it to use the latest state (regardless
|
541
|
+
# of whether its a soft or hard state type), enable this option.
|
542
|
+
# Values:
|
543
|
+
# 0 = Don't use soft state dependencies (default)
|
544
|
+
# 1 = Use soft state dependencies
|
545
|
+
|
546
|
+
soft_state_dependencies=0
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
# TIME CHANGE ADJUSTMENT THRESHOLDS
|
551
|
+
# These options determine when Nagios will react to detected changes
|
552
|
+
# in system time (either forward or backwards).
|
553
|
+
|
554
|
+
#time_change_threshold=900
|
555
|
+
|
556
|
+
|
557
|
+
|
558
|
+
# AUTO-RESCHEDULING OPTION
|
559
|
+
# This option determines whether or not Nagios will attempt to
|
560
|
+
# automatically reschedule active host and service checks to
|
561
|
+
# "smooth" them out over time. This can help balance the load on
|
562
|
+
# the monitoring server.
|
563
|
+
# WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
|
564
|
+
# PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
|
565
|
+
|
566
|
+
auto_reschedule_checks=0
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
# AUTO-RESCHEDULING INTERVAL
|
571
|
+
# This option determines how often (in seconds) Nagios will
|
572
|
+
# attempt to automatically reschedule checks. This option only
|
573
|
+
# has an effect if the auto_reschedule_checks option is enabled.
|
574
|
+
# Default is 30 seconds.
|
575
|
+
# WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
|
576
|
+
# PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
|
577
|
+
|
578
|
+
auto_rescheduling_interval=30
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
# AUTO-RESCHEDULING WINDOW
|
583
|
+
# This option determines the "window" of time (in seconds) that
|
584
|
+
# Nagios will look at when automatically rescheduling checks.
|
585
|
+
# Only host and service checks that occur in the next X seconds
|
586
|
+
# (determined by this variable) will be rescheduled. This option
|
587
|
+
# only has an effect if the auto_reschedule_checks option is
|
588
|
+
# enabled. Default is 180 seconds (3 minutes).
|
589
|
+
# WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
|
590
|
+
# PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
|
591
|
+
|
592
|
+
auto_rescheduling_window=180
|
593
|
+
|
594
|
+
|
595
|
+
|
596
|
+
# SLEEP TIME
|
597
|
+
# This is the number of seconds to sleep between checking for system
|
598
|
+
# events and service checks that need to be run.
|
599
|
+
|
600
|
+
sleep_time=0.25
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
# TIMEOUT VALUES
|
605
|
+
# These options control how much time Nagios will allow various
|
606
|
+
# types of commands to execute before killing them off. Options
|
607
|
+
# are available for controlling maximum time allotted for
|
608
|
+
# service checks, host checks, event handlers, notifications, the
|
609
|
+
# ocsp command, and performance data commands. All values are in
|
610
|
+
# seconds.
|
611
|
+
|
612
|
+
service_check_timeout=60
|
613
|
+
host_check_timeout=30
|
614
|
+
event_handler_timeout=30
|
615
|
+
notification_timeout=30
|
616
|
+
ocsp_timeout=5
|
617
|
+
perfdata_timeout=5
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
# RETAIN STATE INFORMATION
|
622
|
+
# This setting determines whether or not Nagios will save state
|
623
|
+
# information for services and hosts before it shuts down. Upon
|
624
|
+
# startup Nagios will reload all saved service and host state
|
625
|
+
# information before starting to monitor. This is useful for
|
626
|
+
# maintaining long-term data on state statistics, etc, but will
|
627
|
+
# slow Nagios down a bit when it (re)starts. Since its only
|
628
|
+
# a one-time penalty, I think its well worth the additional
|
629
|
+
# startup delay.
|
630
|
+
|
631
|
+
retain_state_information=1
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
# STATE RETENTION FILE
|
636
|
+
# This is the file that Nagios should use to store host and
|
637
|
+
# service state information before it shuts down. The state
|
638
|
+
# information in this file is also read immediately prior to
|
639
|
+
# starting to monitor the network when Nagios is restarted.
|
640
|
+
# This file is used only if the preserve_state_information
|
641
|
+
# variable is set to 1.
|
642
|
+
|
643
|
+
state_retention_file=/usr/local/nagios/var/retention.dat
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
# RETENTION DATA UPDATE INTERVAL
|
648
|
+
# This setting determines how often (in minutes) that Nagios
|
649
|
+
# will automatically save retention data during normal operation.
|
650
|
+
# If you set this value to 0, Nagios will not save retention
|
651
|
+
# data at regular interval, but it will still save retention
|
652
|
+
# data before shutting down or restarting. If you have disabled
|
653
|
+
# state retention, this option has no effect.
|
654
|
+
|
655
|
+
retention_update_interval=60
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
# USE RETAINED PROGRAM STATE
|
660
|
+
# This setting determines whether or not Nagios will set
|
661
|
+
# program status variables based on the values saved in the
|
662
|
+
# retention file. If you want to use retained program status
|
663
|
+
# information, set this value to 1. If not, set this value
|
664
|
+
# to 0.
|
665
|
+
|
666
|
+
use_retained_program_state=1
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
# USE RETAINED SCHEDULING INFO
|
671
|
+
# This setting determines whether or not Nagios will retain
|
672
|
+
# the scheduling info (next check time) for hosts and services
|
673
|
+
# based on the values saved in the retention file. If you
|
674
|
+
# If you want to use retained scheduling info, set this
|
675
|
+
# value to 1. If not, set this value to 0.
|
676
|
+
|
677
|
+
use_retained_scheduling_info=1
|
678
|
+
|
679
|
+
|
680
|
+
|
681
|
+
# RETAINED ATTRIBUTE MASKS (ADVANCED FEATURE)
|
682
|
+
# The following variables are used to specify specific host and
|
683
|
+
# service attributes that should *not* be retained by Nagios during
|
684
|
+
# program restarts.
|
685
|
+
#
|
686
|
+
# The values of the masks are bitwise ANDs of values specified
|
687
|
+
# by the "MODATTR_" definitions found in include/common.h.
|
688
|
+
# For example, if you do not want the current enabled/disabled state
|
689
|
+
# of flap detection and event handlers for hosts to be retained, you
|
690
|
+
# would use a value of 24 for the host attribute mask...
|
691
|
+
# MODATTR_EVENT_HANDLER_ENABLED (8) + MODATTR_FLAP_DETECTION_ENABLED (16) = 24
|
692
|
+
|
693
|
+
# This mask determines what host attributes are not retained
|
694
|
+
retained_host_attribute_mask=0
|
695
|
+
|
696
|
+
# This mask determines what service attributes are not retained
|
697
|
+
retained_service_attribute_mask=0
|
698
|
+
|
699
|
+
# These two masks determine what process attributes are not retained.
|
700
|
+
# There are two masks, because some process attributes have host and service
|
701
|
+
# options. For example, you can disable active host checks, but leave active
|
702
|
+
# service checks enabled.
|
703
|
+
retained_process_host_attribute_mask=0
|
704
|
+
retained_process_service_attribute_mask=0
|
705
|
+
|
706
|
+
# These two masks determine what contact attributes are not retained.
|
707
|
+
# There are two masks, because some contact attributes have host and
|
708
|
+
# service options. For example, you can disable host notifications for
|
709
|
+
# a contact, but leave service notifications enabled for them.
|
710
|
+
retained_contact_host_attribute_mask=0
|
711
|
+
retained_contact_service_attribute_mask=0
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
# INTERVAL LENGTH
|
716
|
+
# This is the seconds per unit interval as used in the
|
717
|
+
# host/contact/service configuration files. Setting this to 60 means
|
718
|
+
# that each interval is one minute long (60 seconds). Other settings
|
719
|
+
# have not been tested much, so your mileage is likely to vary...
|
720
|
+
|
721
|
+
interval_length=60
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
# CHECK FOR UPDATES
|
726
|
+
# This option determines whether Nagios will automatically check to
|
727
|
+
# see if new updates (releases) are available. It is recommend that you
|
728
|
+
# enable this option to ensure that you stay on top of the latest critical
|
729
|
+
# patches to Nagios. Nagios is critical to you - make sure you keep it in
|
730
|
+
# good shape. Nagios will check once a day for new updates. Data collected
|
731
|
+
# by Nagios Enterprises from the update check is processed in accordance
|
732
|
+
# with our privacy policy - see http://api.nagios.org for details.
|
733
|
+
|
734
|
+
check_for_updates=1
|
735
|
+
|
736
|
+
|
737
|
+
|
738
|
+
# BARE UPDATE CHECK
|
739
|
+
# This option deterines what data Nagios will send to api.nagios.org when
|
740
|
+
# it checks for updates. By default, Nagios will send information on the
|
741
|
+
# current version of Nagios you have installed, as well as an indicator as
|
742
|
+
# to whether this was a new installation or not. Nagios Enterprises uses
|
743
|
+
# this data to determine the number of users running specific version of
|
744
|
+
# Nagios. Enable this option if you do not want this information to be sent.
|
745
|
+
|
746
|
+
bare_update_check=0
|
747
|
+
|
748
|
+
|
749
|
+
|
750
|
+
# AGGRESSIVE HOST CHECKING OPTION
|
751
|
+
# If you don't want to turn on aggressive host checking features, set
|
752
|
+
# this value to 0 (the default). Otherwise set this value to 1 to
|
753
|
+
# enable the aggressive check option. Read the docs for more info
|
754
|
+
# on what aggressive host check is or check out the source code in
|
755
|
+
# base/checks.c
|
756
|
+
|
757
|
+
use_aggressive_host_checking=0
|
758
|
+
|
759
|
+
|
760
|
+
|
761
|
+
# SERVICE CHECK EXECUTION OPTION
|
762
|
+
# This determines whether or not Nagios will actively execute
|
763
|
+
# service checks when it initially starts. If this option is
|
764
|
+
# disabled, checks are not actively made, but Nagios can still
|
765
|
+
# receive and process passive check results that come in. Unless
|
766
|
+
# you're implementing redundant hosts or have a special need for
|
767
|
+
# disabling the execution of service checks, leave this enabled!
|
768
|
+
# Values: 1 = enable checks, 0 = disable checks
|
769
|
+
|
770
|
+
execute_service_checks=1
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
# PASSIVE SERVICE CHECK ACCEPTANCE OPTION
|
775
|
+
# This determines whether or not Nagios will accept passive
|
776
|
+
# service checks results when it initially (re)starts.
|
777
|
+
# Values: 1 = accept passive checks, 0 = reject passive checks
|
778
|
+
|
779
|
+
accept_passive_service_checks=1
|
780
|
+
|
781
|
+
|
782
|
+
|
783
|
+
# HOST CHECK EXECUTION OPTION
|
784
|
+
# This determines whether or not Nagios will actively execute
|
785
|
+
# host checks when it initially starts. If this option is
|
786
|
+
# disabled, checks are not actively made, but Nagios can still
|
787
|
+
# receive and process passive check results that come in. Unless
|
788
|
+
# you're implementing redundant hosts or have a special need for
|
789
|
+
# disabling the execution of host checks, leave this enabled!
|
790
|
+
# Values: 1 = enable checks, 0 = disable checks
|
791
|
+
|
792
|
+
execute_host_checks=1
|
793
|
+
|
794
|
+
|
795
|
+
|
796
|
+
# PASSIVE HOST CHECK ACCEPTANCE OPTION
|
797
|
+
# This determines whether or not Nagios will accept passive
|
798
|
+
# host checks results when it initially (re)starts.
|
799
|
+
# Values: 1 = accept passive checks, 0 = reject passive checks
|
800
|
+
|
801
|
+
accept_passive_host_checks=1
|
802
|
+
|
803
|
+
|
804
|
+
|
805
|
+
# NOTIFICATIONS OPTION
|
806
|
+
# This determines whether or not Nagios will sent out any host or
|
807
|
+
# service notifications when it is initially (re)started.
|
808
|
+
# Values: 1 = enable notifications, 0 = disable notifications
|
809
|
+
|
810
|
+
enable_notifications=1
|
811
|
+
|
812
|
+
|
813
|
+
|
814
|
+
# EVENT HANDLER USE OPTION
|
815
|
+
# This determines whether or not Nagios will run any host or
|
816
|
+
# service event handlers when it is initially (re)started. Unless
|
817
|
+
# you're implementing redundant hosts, leave this option enabled.
|
818
|
+
# Values: 1 = enable event handlers, 0 = disable event handlers
|
819
|
+
|
820
|
+
enable_event_handlers=1
|
821
|
+
|
822
|
+
|
823
|
+
|
824
|
+
# PROCESS PERFORMANCE DATA OPTION
|
825
|
+
# This determines whether or not Nagios will process performance
|
826
|
+
# data returned from service and host checks. If this option is
|
827
|
+
# enabled, host performance data will be processed using the
|
828
|
+
# host_perfdata_command (defined below) and service performance
|
829
|
+
# data will be processed using the service_perfdata_command (also
|
830
|
+
# defined below). Read the HTML docs for more information on
|
831
|
+
# performance data.
|
832
|
+
# Values: 1 = process performance data, 0 = do not process performance data
|
833
|
+
|
834
|
+
process_performance_data=0
|
835
|
+
|
836
|
+
|
837
|
+
|
838
|
+
# HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS
|
839
|
+
# These commands are run after every host and service check is
|
840
|
+
# performed. These commands are executed only if the
|
841
|
+
# enable_performance_data option (above) is set to 1. The command
|
842
|
+
# argument is the short name of a command definition that you
|
843
|
+
# define in your host configuration file. Read the HTML docs for
|
844
|
+
# more information on performance data.
|
845
|
+
|
846
|
+
#host_perfdata_command=process-host-perfdata
|
847
|
+
#service_perfdata_command=process-service-perfdata
|
848
|
+
|
849
|
+
|
850
|
+
|
851
|
+
# HOST AND SERVICE PERFORMANCE DATA FILES
|
852
|
+
# These files are used to store host and service performance data.
|
853
|
+
# Performance data is only written to these files if the
|
854
|
+
# enable_performance_data option (above) is set to 1.
|
855
|
+
|
856
|
+
#host_perfdata_file=/tmp/host-perfdata
|
857
|
+
#service_perfdata_file=/tmp/service-perfdata
|
858
|
+
|
859
|
+
|
860
|
+
|
861
|
+
# HOST AND SERVICE PERFORMANCE DATA FILE TEMPLATES
|
862
|
+
# These options determine what data is written (and how) to the
|
863
|
+
# performance data files. The templates may contain macros, special
|
864
|
+
# characters (\t for tab, \r for carriage return, \n for newline)
|
865
|
+
# and plain text. A newline is automatically added after each write
|
866
|
+
# to the performance data file. Some examples of what you can do are
|
867
|
+
# shown below.
|
868
|
+
|
869
|
+
#host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
|
870
|
+
#service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$
|
871
|
+
|
872
|
+
|
873
|
+
|
874
|
+
# HOST AND SERVICE PERFORMANCE DATA FILE MODES
|
875
|
+
# This option determines whether or not the host and service
|
876
|
+
# performance data files are opened in write ("w") or append ("a")
|
877
|
+
# mode. If you want to use named pipes, you should use the special
|
878
|
+
# pipe ("p") mode which avoid blocking at startup, otherwise you will
|
879
|
+
# likely want the defult append ("a") mode.
|
880
|
+
|
881
|
+
#host_perfdata_file_mode=a
|
882
|
+
#service_perfdata_file_mode=a
|
883
|
+
|
884
|
+
|
885
|
+
|
886
|
+
# HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING INTERVAL
|
887
|
+
# These options determine how often (in seconds) the host and service
|
888
|
+
# performance data files are processed using the commands defined
|
889
|
+
# below. A value of 0 indicates the files should not be periodically
|
890
|
+
# processed.
|
891
|
+
|
892
|
+
#host_perfdata_file_processing_interval=0
|
893
|
+
#service_perfdata_file_processing_interval=0
|
894
|
+
|
895
|
+
|
896
|
+
|
897
|
+
# HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS
|
898
|
+
# These commands are used to periodically process the host and
|
899
|
+
# service performance data files. The interval at which the
|
900
|
+
# processing occurs is determined by the options above.
|
901
|
+
|
902
|
+
#host_perfdata_file_processing_command=process-host-perfdata-file
|
903
|
+
#service_perfdata_file_processing_command=process-service-perfdata-file
|
904
|
+
|
905
|
+
|
906
|
+
|
907
|
+
# OBSESS OVER SERVICE CHECKS OPTION
|
908
|
+
# This determines whether or not Nagios will obsess over service
|
909
|
+
# checks and run the ocsp_command defined below. Unless you're
|
910
|
+
# planning on implementing distributed monitoring, do not enable
|
911
|
+
# this option. Read the HTML docs for more information on
|
912
|
+
# implementing distributed monitoring.
|
913
|
+
# Values: 1 = obsess over services, 0 = do not obsess (default)
|
914
|
+
|
915
|
+
obsess_over_services=0
|
916
|
+
|
917
|
+
|
918
|
+
|
919
|
+
# OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND
|
920
|
+
# This is the command that is run for every service check that is
|
921
|
+
# processed by Nagios. This command is executed only if the
|
922
|
+
# obsess_over_services option (above) is set to 1. The command
|
923
|
+
# argument is the short name of a command definition that you
|
924
|
+
# define in your host configuration file. Read the HTML docs for
|
925
|
+
# more information on implementing distributed monitoring.
|
926
|
+
|
927
|
+
#ocsp_command=somecommand
|
928
|
+
|
929
|
+
|
930
|
+
|
931
|
+
# OBSESS OVER HOST CHECKS OPTION
|
932
|
+
# This determines whether or not Nagios will obsess over host
|
933
|
+
# checks and run the ochp_command defined below. Unless you're
|
934
|
+
# planning on implementing distributed monitoring, do not enable
|
935
|
+
# this option. Read the HTML docs for more information on
|
936
|
+
# implementing distributed monitoring.
|
937
|
+
# Values: 1 = obsess over hosts, 0 = do not obsess (default)
|
938
|
+
|
939
|
+
obsess_over_hosts=0
|
940
|
+
|
941
|
+
|
942
|
+
|
943
|
+
# OBSESSIVE COMPULSIVE HOST PROCESSOR COMMAND
|
944
|
+
# This is the command that is run for every host check that is
|
945
|
+
# processed by Nagios. This command is executed only if the
|
946
|
+
# obsess_over_hosts option (above) is set to 1. The command
|
947
|
+
# argument is the short name of a command definition that you
|
948
|
+
# define in your host configuration file. Read the HTML docs for
|
949
|
+
# more information on implementing distributed monitoring.
|
950
|
+
|
951
|
+
#ochp_command=somecommand
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
# TRANSLATE PASSIVE HOST CHECKS OPTION
|
956
|
+
# This determines whether or not Nagios will translate
|
957
|
+
# DOWN/UNREACHABLE passive host check results into their proper
|
958
|
+
# state for this instance of Nagios. This option is useful
|
959
|
+
# if you have distributed or failover monitoring setup. In
|
960
|
+
# these cases your other Nagios servers probably have a different
|
961
|
+
# "view" of the network, with regards to the parent/child relationship
|
962
|
+
# of hosts. If a distributed monitoring server thinks a host
|
963
|
+
# is DOWN, it may actually be UNREACHABLE from the point of
|
964
|
+
# this Nagios instance. Enabling this option will tell Nagios
|
965
|
+
# to translate any DOWN or UNREACHABLE host states it receives
|
966
|
+
# passively into the correct state from the view of this server.
|
967
|
+
# Values: 1 = perform translation, 0 = do not translate (default)
|
968
|
+
|
969
|
+
translate_passive_host_checks=0
|
970
|
+
|
971
|
+
|
972
|
+
|
973
|
+
# PASSIVE HOST CHECKS ARE SOFT OPTION
|
974
|
+
# This determines whether or not Nagios will treat passive host
|
975
|
+
# checks as being HARD or SOFT. By default, a passive host check
|
976
|
+
# result will put a host into a HARD state type. This can be changed
|
977
|
+
# by enabling this option.
|
978
|
+
# Values: 0 = passive checks are HARD, 1 = passive checks are SOFT
|
979
|
+
|
980
|
+
passive_host_checks_are_soft=0
|
981
|
+
|
982
|
+
|
983
|
+
|
984
|
+
# ORPHANED HOST/SERVICE CHECK OPTIONS
|
985
|
+
# These options determine whether or not Nagios will periodically
|
986
|
+
# check for orphaned host service checks. Since service checks are
|
987
|
+
# not rescheduled until the results of their previous execution
|
988
|
+
# instance are processed, there exists a possibility that some
|
989
|
+
# checks may never get rescheduled. A similar situation exists for
|
990
|
+
# host checks, although the exact scheduling details differ a bit
|
991
|
+
# from service checks. Orphaned checks seem to be a rare
|
992
|
+
# problem and should not happen under normal circumstances.
|
993
|
+
# If you have problems with service checks never getting
|
994
|
+
# rescheduled, make sure you have orphaned service checks enabled.
|
995
|
+
# Values: 1 = enable checks, 0 = disable checks
|
996
|
+
|
997
|
+
check_for_orphaned_services=1
|
998
|
+
check_for_orphaned_hosts=1
|
999
|
+
|
1000
|
+
|
1001
|
+
|
1002
|
+
# SERVICE FRESHNESS CHECK OPTION
|
1003
|
+
# This option determines whether or not Nagios will periodically
|
1004
|
+
# check the "freshness" of service results. Enabling this option
|
1005
|
+
# is useful for ensuring passive checks are received in a timely
|
1006
|
+
# manner.
|
1007
|
+
# Values: 1 = enabled freshness checking, 0 = disable freshness checking
|
1008
|
+
|
1009
|
+
check_service_freshness=1
|
1010
|
+
|
1011
|
+
|
1012
|
+
|
1013
|
+
# SERVICE FRESHNESS CHECK INTERVAL
|
1014
|
+
# This setting determines how often (in seconds) Nagios will
|
1015
|
+
# check the "freshness" of service check results. If you have
|
1016
|
+
# disabled service freshness checking, this option has no effect.
|
1017
|
+
|
1018
|
+
service_freshness_check_interval=60
|
1019
|
+
|
1020
|
+
|
1021
|
+
|
1022
|
+
# HOST FRESHNESS CHECK OPTION
|
1023
|
+
# This option determines whether or not Nagios will periodically
|
1024
|
+
# check the "freshness" of host results. Enabling this option
|
1025
|
+
# is useful for ensuring passive checks are received in a timely
|
1026
|
+
# manner.
|
1027
|
+
# Values: 1 = enabled freshness checking, 0 = disable freshness checking
|
1028
|
+
|
1029
|
+
check_host_freshness=0
|
1030
|
+
|
1031
|
+
|
1032
|
+
|
1033
|
+
# HOST FRESHNESS CHECK INTERVAL
|
1034
|
+
# This setting determines how often (in seconds) Nagios will
|
1035
|
+
# check the "freshness" of host check results. If you have
|
1036
|
+
# disabled host freshness checking, this option has no effect.
|
1037
|
+
|
1038
|
+
host_freshness_check_interval=60
|
1039
|
+
|
1040
|
+
|
1041
|
+
|
1042
|
+
|
1043
|
+
# ADDITIONAL FRESHNESS THRESHOLD LATENCY
|
1044
|
+
# This setting determines the number of seconds that Nagios
|
1045
|
+
# will add to any host and service freshness thresholds that
|
1046
|
+
# it calculates (those not explicitly specified by the user).
|
1047
|
+
|
1048
|
+
additional_freshness_latency=15
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
1053
|
+
# FLAP DETECTION OPTION
|
1054
|
+
# This option determines whether or not Nagios will try
|
1055
|
+
# and detect hosts and services that are "flapping".
|
1056
|
+
# Flapping occurs when a host or service changes between
|
1057
|
+
# states too frequently. When Nagios detects that a
|
1058
|
+
# host or service is flapping, it will temporarily suppress
|
1059
|
+
# notifications for that host/service until it stops
|
1060
|
+
# flapping. Flap detection is very experimental, so read
|
1061
|
+
# the HTML documentation before enabling this feature!
|
1062
|
+
# Values: 1 = enable flap detection
|
1063
|
+
# 0 = disable flap detection (default)
|
1064
|
+
|
1065
|
+
enable_flap_detection=1
|
1066
|
+
|
1067
|
+
|
1068
|
+
|
1069
|
+
# FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES
|
1070
|
+
# Read the HTML documentation on flap detection for
|
1071
|
+
# an explanation of what this option does. This option
|
1072
|
+
# has no effect if flap detection is disabled.
|
1073
|
+
|
1074
|
+
low_service_flap_threshold=5.0
|
1075
|
+
high_service_flap_threshold=20.0
|
1076
|
+
low_host_flap_threshold=5.0
|
1077
|
+
high_host_flap_threshold=20.0
|
1078
|
+
|
1079
|
+
|
1080
|
+
|
1081
|
+
# DATE FORMAT OPTION
|
1082
|
+
# This option determines how short dates are displayed. Valid options
|
1083
|
+
# include:
|
1084
|
+
# us (MM-DD-YYYY HH:MM:SS)
|
1085
|
+
# euro (DD-MM-YYYY HH:MM:SS)
|
1086
|
+
# iso8601 (YYYY-MM-DD HH:MM:SS)
|
1087
|
+
# strict-iso8601 (YYYY-MM-DDTHH:MM:SS)
|
1088
|
+
#
|
1089
|
+
|
1090
|
+
date_format=us
|
1091
|
+
|
1092
|
+
|
1093
|
+
|
1094
|
+
|
1095
|
+
# TIMEZONE OFFSET
|
1096
|
+
# This option is used to override the default timezone that this
|
1097
|
+
# instance of Nagios runs in. If not specified, Nagios will use
|
1098
|
+
# the system configured timezone.
|
1099
|
+
#
|
1100
|
+
# NOTE: In order to display the correct timezone in the CGIs, you
|
1101
|
+
# will also need to alter the Apache directives for the CGI path
|
1102
|
+
# to include your timezone. Example:
|
1103
|
+
#
|
1104
|
+
# <Directory "/usr/local/nagios/sbin/">
|
1105
|
+
# SetEnv TZ "Australia/Brisbane"
|
1106
|
+
# ...
|
1107
|
+
# </Directory>
|
1108
|
+
|
1109
|
+
#use_timezone=US/Mountain
|
1110
|
+
#use_timezone=Australia/Brisbane
|
1111
|
+
|
1112
|
+
|
1113
|
+
|
1114
|
+
|
1115
|
+
# P1.PL FILE LOCATION
|
1116
|
+
# This value determines where the p1.pl perl script (used by the
|
1117
|
+
# embedded Perl interpreter) is located. If you didn't compile
|
1118
|
+
# Nagios with embedded Perl support, this option has no effect.
|
1119
|
+
|
1120
|
+
p1_file=/usr/local/nagios/bin/p1.pl
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1124
|
+
# EMBEDDED PERL INTERPRETER OPTION
|
1125
|
+
# This option determines whether or not the embedded Perl interpreter
|
1126
|
+
# will be enabled during runtime. This option has no effect if Nagios
|
1127
|
+
# has not been compiled with support for embedded Perl.
|
1128
|
+
# Values: 0 = disable interpreter, 1 = enable interpreter
|
1129
|
+
|
1130
|
+
enable_embedded_perl=1
|
1131
|
+
|
1132
|
+
|
1133
|
+
|
1134
|
+
# EMBEDDED PERL USAGE OPTION
|
1135
|
+
# This option determines whether or not Nagios will process Perl plugins
|
1136
|
+
# and scripts with the embedded Perl interpreter if the plugins/scripts
|
1137
|
+
# do not explicitly indicate whether or not it is okay to do so. Read
|
1138
|
+
# the HTML documentation on the embedded Perl interpreter for more
|
1139
|
+
# information on how this option works.
|
1140
|
+
|
1141
|
+
use_embedded_perl_implicitly=1
|
1142
|
+
|
1143
|
+
|
1144
|
+
|
1145
|
+
# ILLEGAL OBJECT NAME CHARACTERS
|
1146
|
+
# This option allows you to specify illegal characters that cannot
|
1147
|
+
# be used in host names, service descriptions, or names of other
|
1148
|
+
# object types.
|
1149
|
+
|
1150
|
+
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
|
1151
|
+
|
1152
|
+
|
1153
|
+
|
1154
|
+
# ILLEGAL MACRO OUTPUT CHARACTERS
|
1155
|
+
# This option allows you to specify illegal characters that are
|
1156
|
+
# stripped from macros before being used in notifications, event
|
1157
|
+
# handlers, etc. This DOES NOT affect macros used in service or
|
1158
|
+
# host check commands.
|
1159
|
+
# The following macros are stripped of the characters you specify:
|
1160
|
+
# $HOSTOUTPUT$
|
1161
|
+
# $HOSTPERFDATA$
|
1162
|
+
# $HOSTACKAUTHOR$
|
1163
|
+
# $HOSTACKCOMMENT$
|
1164
|
+
# $SERVICEOUTPUT$
|
1165
|
+
# $SERVICEPERFDATA$
|
1166
|
+
# $SERVICEACKAUTHOR$
|
1167
|
+
# $SERVICEACKCOMMENT$
|
1168
|
+
|
1169
|
+
illegal_macro_output_chars=`~$&|'"<>
|
1170
|
+
|
1171
|
+
|
1172
|
+
|
1173
|
+
# REGULAR EXPRESSION MATCHING
|
1174
|
+
# This option controls whether or not regular expression matching
|
1175
|
+
# takes place in the object config files. Regular expression
|
1176
|
+
# matching is used to match host, hostgroup, service, and service
|
1177
|
+
# group names/descriptions in some fields of various object types.
|
1178
|
+
# Values: 1 = enable regexp matching, 0 = disable regexp matching
|
1179
|
+
|
1180
|
+
use_regexp_matching=0
|
1181
|
+
|
1182
|
+
|
1183
|
+
|
1184
|
+
# "TRUE" REGULAR EXPRESSION MATCHING
|
1185
|
+
# This option controls whether or not "true" regular expression
|
1186
|
+
# matching takes place in the object config files. This option
|
1187
|
+
# only has an effect if regular expression matching is enabled
|
1188
|
+
# (see above). If this option is DISABLED, regular expression
|
1189
|
+
# matching only occurs if a string contains wildcard characters
|
1190
|
+
# (* and ?). If the option is ENABLED, regexp matching occurs
|
1191
|
+
# all the time (which can be annoying).
|
1192
|
+
# Values: 1 = enable true matching, 0 = disable true matching
|
1193
|
+
|
1194
|
+
use_true_regexp_matching=0
|
1195
|
+
|
1196
|
+
|
1197
|
+
|
1198
|
+
# ADMINISTRATOR EMAIL/PAGER ADDRESSES
|
1199
|
+
# The email and pager address of a global administrator (likely you).
|
1200
|
+
# Nagios never uses these values itself, but you can access them by
|
1201
|
+
# using the $ADMINEMAIL$ and $ADMINPAGER$ macros in your notification
|
1202
|
+
# commands.
|
1203
|
+
|
1204
|
+
admin_email=nagios@localhost
|
1205
|
+
admin_pager=pagenagios@localhost
|
1206
|
+
|
1207
|
+
|
1208
|
+
|
1209
|
+
# DAEMON CORE DUMP OPTION
|
1210
|
+
# This option determines whether or not Nagios is allowed to create
|
1211
|
+
# a core dump when it runs as a daemon. Note that it is generally
|
1212
|
+
# considered bad form to allow this, but it may be useful for
|
1213
|
+
# debugging purposes. Enabling this option doesn't guarantee that
|
1214
|
+
# a core file will be produced, but that's just life...
|
1215
|
+
# Values: 1 - Allow core dumps
|
1216
|
+
# 0 - Do not allow core dumps (default)
|
1217
|
+
|
1218
|
+
daemon_dumps_core=0
|
1219
|
+
|
1220
|
+
|
1221
|
+
|
1222
|
+
# LARGE INSTALLATION TWEAKS OPTION
|
1223
|
+
# This option determines whether or not Nagios will take some shortcuts
|
1224
|
+
# which can save on memory and CPU usage in large Nagios installations.
|
1225
|
+
# Read the documentation for more information on the benefits/tradeoffs
|
1226
|
+
# of enabling this option.
|
1227
|
+
# Values: 1 - Enabled tweaks
|
1228
|
+
# 0 - Disable tweaks (default)
|
1229
|
+
|
1230
|
+
use_large_installation_tweaks=0
|
1231
|
+
|
1232
|
+
|
1233
|
+
|
1234
|
+
# ENABLE ENVIRONMENT MACROS
|
1235
|
+
# This option determines whether or not Nagios will make all standard
|
1236
|
+
# macros available as environment variables when host/service checks
|
1237
|
+
# and system commands (event handlers, notifications, etc.) are
|
1238
|
+
# executed. Enabling this option can cause performance issues in
|
1239
|
+
# large installations, as it will consume a bit more memory and (more
|
1240
|
+
# importantly) consume more CPU.
|
1241
|
+
# Values: 1 - Enable environment variable macros (default)
|
1242
|
+
# 0 - Disable environment variable macros
|
1243
|
+
|
1244
|
+
enable_environment_macros=1
|
1245
|
+
|
1246
|
+
|
1247
|
+
|
1248
|
+
# CHILD PROCESS MEMORY OPTION
|
1249
|
+
# This option determines whether or not Nagios will free memory in
|
1250
|
+
# child processes (processed used to execute system commands and host/
|
1251
|
+
# service checks). If you specify a value here, it will override
|
1252
|
+
# program defaults.
|
1253
|
+
# Value: 1 - Free memory in child processes
|
1254
|
+
# 0 - Do not free memory in child processes
|
1255
|
+
|
1256
|
+
#free_child_process_memory=1
|
1257
|
+
|
1258
|
+
|
1259
|
+
|
1260
|
+
# CHILD PROCESS FORKING BEHAVIOR
|
1261
|
+
# This option determines how Nagios will fork child processes
|
1262
|
+
# (used to execute system commands and host/service checks). Normally
|
1263
|
+
# child processes are fork()ed twice, which provides a very high level
|
1264
|
+
# of isolation from problems. Fork()ing once is probably enough and will
|
1265
|
+
# save a great deal on CPU usage (in large installs), so you might
|
1266
|
+
# want to consider using this. If you specify a value here, it will
|
1267
|
+
# program defaults.
|
1268
|
+
# Value: 1 - Child processes fork() twice
|
1269
|
+
# 0 - Child processes fork() just once
|
1270
|
+
|
1271
|
+
#child_processes_fork_twice=1
|
1272
|
+
|
1273
|
+
|
1274
|
+
|
1275
|
+
# DEBUG LEVEL
|
1276
|
+
# This option determines how much (if any) debugging information will
|
1277
|
+
# be written to the debug file. OR values together to log multiple
|
1278
|
+
# types of information.
|
1279
|
+
# Values:
|
1280
|
+
# -1 = Everything
|
1281
|
+
# 0 = Nothing
|
1282
|
+
# 1 = Functions
|
1283
|
+
# 2 = Configuration
|
1284
|
+
# 4 = Process information
|
1285
|
+
# 8 = Scheduled events
|
1286
|
+
# 16 = Host/service checks
|
1287
|
+
# 32 = Notifications
|
1288
|
+
# 64 = Event broker
|
1289
|
+
# 128 = External commands
|
1290
|
+
# 256 = Commands
|
1291
|
+
# 512 = Scheduled downtime
|
1292
|
+
# 1024 = Comments
|
1293
|
+
# 2048 = Macros
|
1294
|
+
|
1295
|
+
debug_level=0
|
1296
|
+
|
1297
|
+
|
1298
|
+
|
1299
|
+
# DEBUG VERBOSITY
|
1300
|
+
# This option determines how verbose the debug log out will be.
|
1301
|
+
# Values: 0 = Brief output
|
1302
|
+
# 1 = More detailed
|
1303
|
+
# 2 = Very detailed
|
1304
|
+
|
1305
|
+
debug_verbosity=1
|
1306
|
+
|
1307
|
+
|
1308
|
+
|
1309
|
+
# DEBUG FILE
|
1310
|
+
# This option determines where Nagios should write debugging information.
|
1311
|
+
|
1312
|
+
debug_file=/usr/local/nagios/var/nagios.debug
|
1313
|
+
|
1314
|
+
|
1315
|
+
|
1316
|
+
# MAX DEBUG FILE SIZE
|
1317
|
+
# This option determines the maximum size (in bytes) of the debug file. If
|
1318
|
+
# the file grows larger than this size, it will be renamed with a .old
|
1319
|
+
# extension. If a file already exists with a .old extension it will
|
1320
|
+
# automatically be deleted. This helps ensure your disk space usage doesn't
|
1321
|
+
# get out of control when debugging Nagios.
|
1322
|
+
|
1323
|
+
max_debug_file_size=1000000
|
1324
|
+
|
1325
|
+
|