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