deprec 2.1.19 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/CHANGELOG +11 -1
  2. data/{README → README.md} +33 -68
  3. data/bin/hosts.rb +44 -0
  4. data/docs/nagios.txt +28 -0
  5. data/lib/deprec/capistrano_extensions.rb +21 -32
  6. data/lib/deprec/recipes/apache.rb +54 -73
  7. data/lib/deprec/recipes/deprec.rb +30 -48
  8. data/lib/deprec/recipes/git.rb +2 -85
  9. data/lib/deprec/recipes/haproxy.rb +3 -11
  10. data/lib/deprec/recipes/mri.rb +23 -40
  11. data/lib/deprec/recipes/mysql.rb +6 -23
  12. data/lib/deprec/recipes/nagios.rb +2 -17
  13. data/lib/deprec/recipes/nagios3.rb +180 -0
  14. data/lib/deprec/recipes/network.rb +60 -28
  15. data/lib/deprec/recipes/nrpe.rb +82 -0
  16. data/lib/deprec/recipes/passenger.rb +15 -12
  17. data/lib/deprec/recipes/postgresql.rb +2 -2
  18. data/lib/deprec/recipes/rack.rb +44 -0
  19. data/lib/deprec/recipes/rails.rb +10 -32
  20. data/lib/deprec/recipes/ree.rb +27 -18
  21. data/lib/deprec/recipes/rubygems.rb +29 -0
  22. data/lib/deprec/recipes/sqlite.rb +1 -1
  23. data/lib/deprec/recipes/ssh.rb +1 -0
  24. data/lib/deprec/recipes/svn.rb +1 -160
  25. data/lib/deprec/recipes/users.rb +19 -16
  26. data/lib/deprec/recipes_minus_rails.rb +39 -36
  27. data/lib/deprec/templates/apache/CHANGES.txt +11 -0
  28. data/lib/deprec/templates/mysql/my.cnf.erb +21 -31
  29. data/lib/deprec/templates/{nagios → nagios.old}/README +0 -0
  30. data/lib/deprec/templates/nagios.old/apache_vhost.erb +25 -0
  31. data/lib/deprec/templates/{nagios → nagios.old}/cgi.cfg.erb +0 -0
  32. data/lib/deprec/templates/nagios.old/check_linux_free_memory.pl +118 -0
  33. data/lib/deprec/templates/{nagios → nagios.old}/check_mongrel_cluster.rb +0 -0
  34. data/lib/deprec/templates/nagios.old/htpasswd.users +1 -0
  35. data/lib/deprec/templates/{nagios → nagios.old}/mrtg.cfg +0 -0
  36. data/lib/deprec/templates/{nagios → nagios.old}/nagios.cfg.erb +0 -0
  37. data/lib/deprec/templates/{nagios → nagios.old}/nrpe.cfg.erb +0 -0
  38. data/lib/deprec/templates/{nagios → nagios.old}/nrpe.xinetd.erb +0 -0
  39. data/lib/deprec/templates/{nagios → nagios.old}/objects/commands.cfg.erb +0 -0
  40. data/lib/deprec/templates/{nagios → nagios.old}/objects/contacts.cfg.erb +0 -0
  41. data/lib/deprec/templates/{nagios → nagios.old}/objects/hosts.cfg.erb +0 -0
  42. data/lib/deprec/templates/{nagios → nagios.old}/objects/localhost.cfg.erb +0 -0
  43. data/lib/deprec/templates/{nagios → nagios.old}/objects/services.cfg.erb +0 -0
  44. data/lib/deprec/templates/{nagios → nagios.old}/objects/timeperiods.cfg.erb +0 -0
  45. data/lib/deprec/templates/{nagios → nagios.old}/resource.cfg.erb +0 -0
  46. data/lib/deprec/templates/nagios/apache2.conf +55 -0
  47. data/lib/deprec/templates/nagios/cgi.cfg +25 -0
  48. data/lib/deprec/templates/nagios/commands.cfg +52 -0
  49. data/lib/deprec/templates/nagios/conf.d/contacts_nagios2.cfg +23 -0
  50. data/lib/deprec/templates/nagios/conf.d/extinfo_nagios2.cfg +13 -0
  51. data/lib/deprec/templates/nagios/conf.d/generic-host_nagios2.cfg +19 -0
  52. data/lib/deprec/templates/nagios/conf.d/generic-service_nagios2.cfg +26 -0
  53. data/lib/deprec/templates/nagios/conf.d/hostgroups_nagios2.cfg +48 -0
  54. data/lib/deprec/templates/nagios/conf.d/hosts/localhost_nagios2.cfg +59 -0
  55. data/lib/deprec/templates/nagios/conf.d/services_nagios2.cfg +45 -0
  56. data/lib/deprec/templates/nagios/conf.d/timeperiods_nagios2.cfg +50 -0
  57. data/lib/deprec/templates/nagios/host_template.erb +6 -0
  58. data/lib/deprec/templates/nagios/htpasswd.users +1 -1
  59. data/lib/deprec/templates/nagios/nagios.cfg +1326 -0
  60. data/lib/deprec/templates/nagios/nrpe.cfg +28 -0
  61. data/lib/deprec/templates/nagios/resource.cfg +31 -0
  62. data/lib/deprec/templates/passenger/apache_vhost.erb +2 -2
  63. data/lib/deprec/templates/passenger/logrotate.conf.erb +1 -1
  64. data/lib/deprec/templates/passenger/passenger.conf.erb +12 -11
  65. data/lib/deprec/templates/passenger/passenger.load.erb +1 -1
  66. metadata +43 -42
  67. data/lib/deprec/recipes/wordpress.rb +0 -96
@@ -0,0 +1,59 @@
1
+ # A simple configuration file for monitoring the local host
2
+ # This can serve as an example for configuring other servers;
3
+ # Custom services specific to this host are added here, but services
4
+ # defined in nagios2-common_services.cfg may also apply.
5
+ #
6
+
7
+ define host{
8
+ use generic-host ; Name of host template to use
9
+ host_name localhost
10
+ alias localhost
11
+ address 127.0.0.1
12
+ }
13
+
14
+ # Define a service to check the disk space of the root partition
15
+ # on the local machine. Warning if < 20% free, critical if
16
+ # < 10% free space on partition.
17
+
18
+ define service{
19
+ use generic-service ; Name of service template to use
20
+ host_name localhost
21
+ service_description Disk Space
22
+ check_command check_all_disks!20%!10%
23
+ }
24
+
25
+
26
+
27
+ # Define a service to check the number of currently logged in
28
+ # users on the local machine. Warning if > 20 users, critical
29
+ # if > 50 users.
30
+
31
+ define service{
32
+ use generic-service ; Name of service template to use
33
+ host_name localhost
34
+ service_description Current Users
35
+ check_command check_users!20!50
36
+ }
37
+
38
+
39
+ # Define a service to check the number of currently running procs
40
+ # on the local machine. Warning if > 250 processes, critical if
41
+ # > 400 processes.
42
+
43
+ define service{
44
+ use generic-service ; Name of service template to use
45
+ host_name localhost
46
+ service_description Total Processes
47
+ check_command check_procs!250!400
48
+ }
49
+
50
+
51
+
52
+ # Define a service to check the load on the local machine.
53
+
54
+ define service{
55
+ use generic-service ; Name of service template to use
56
+ host_name localhost
57
+ service_description Current Load
58
+ check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0
59
+ }
@@ -0,0 +1,45 @@
1
+ # check that web services are running
2
+ define service {
3
+ hostgroup_name http-servers
4
+ service_description HTTP
5
+ check_command check_http
6
+ use generic-service
7
+ notification_interval 0 ; set > 0 if you want to be renotified
8
+ }
9
+
10
+ # check that ssh services are running
11
+ define service {
12
+ hostgroup_name ssh-servers
13
+ service_description SSH
14
+ check_command check_ssh
15
+ use generic-service
16
+ notification_interval 0 ; set > 0 if you want to be renotified
17
+ }
18
+
19
+ define service{
20
+ use generic-service
21
+ hostgroup_name linux-servers
22
+ service_description CPU load
23
+ check_command check_nrpe_1arg!check_load
24
+ }
25
+
26
+ define service{
27
+ use generic-service
28
+ hostgroup_name linux-servers
29
+ service_description Check All Disks
30
+ check_command check_nrpe_1arg!check_all_disks
31
+ }
32
+
33
+ define service{
34
+ use generic-service
35
+ hostgroup_name linux-servers
36
+ service_description Check Memory
37
+ check_command check_nrpe_1arg!check_mem
38
+ }
39
+
40
+ define service{
41
+ use generic-service
42
+ hostgroup_name linux-servers
43
+ service_description Check Swap
44
+ check_command check_nrpe_1arg!check_swap
45
+ }
@@ -0,0 +1,50 @@
1
+ ###############################################################################
2
+ # timeperiods.cfg
3
+ ###############################################################################
4
+
5
+ # This defines a timeperiod where all times are valid for checks,
6
+ # notifications, etc. The classic "24x7" support nightmare. :-)
7
+
8
+ define timeperiod{
9
+ timeperiod_name 24x7
10
+ alias 24 Hours A Day, 7 Days A Week
11
+ sunday 00:00-24:00
12
+ monday 00:00-24:00
13
+ tuesday 00:00-24:00
14
+ wednesday 00:00-24:00
15
+ thursday 00:00-24:00
16
+ friday 00:00-24:00
17
+ saturday 00:00-24:00
18
+ }
19
+
20
+ # Here is a slightly friendlier period during work hours
21
+ define timeperiod{
22
+ timeperiod_name workhours
23
+ alias Standard Work Hours
24
+ monday 09:00-17:00
25
+ tuesday 09:00-17:00
26
+ wednesday 09:00-17:00
27
+ thursday 09:00-17:00
28
+ friday 09:00-17:00
29
+ }
30
+
31
+ # The complement of workhours
32
+ define timeperiod{
33
+ timeperiod_name nonworkhours
34
+ alias Non-Work Hours
35
+ sunday 00:00-24:00
36
+ monday 00:00-09:00,17:00-24:00
37
+ tuesday 00:00-09:00,17:00-24:00
38
+ wednesday 00:00-09:00,17:00-24:00
39
+ thursday 00:00-09:00,17:00-24:00
40
+ friday 00:00-09:00,17:00-24:00
41
+ saturday 00:00-24:00
42
+ }
43
+
44
+ # This one is a favorite: never :)
45
+ define timeperiod{
46
+ timeperiod_name never
47
+ alias Never
48
+ }
49
+
50
+ # end of file
@@ -0,0 +1,6 @@
1
+ define host{
2
+ use generic-host
3
+ host_name <%= nagios_target_host_name %>
4
+ hostgroups <%= nagios_target_hostgroups %>
5
+ address <%= nagios_target_address %>
6
+ }
@@ -1 +1 @@
1
- nagiosadmin:wSjr.2Tk17iAU
1
+ nagiosadmin:fC/3ULjwKVM6E
@@ -0,0 +1,1326 @@
1
+ ##############################################################################
2
+ #
3
+ # NAGIOS.CFG - Sample Main Config File for Nagios
4
+ #
5
+ #
6
+ ##############################################################################
7
+
8
+
9
+ # LOG FILE
10
+ # This is the main log file where service and host events are logged
11
+ # for historical purposes. This should be the first option specified
12
+ # in the config file!!!
13
+
14
+ log_file=/var/log/nagios3/nagios.log
15
+
16
+ # Commands definitions
17
+ cfg_file=/etc/nagios3/commands.cfg
18
+
19
+ # Debian also defaults to using the check commands defined by the debian
20
+ # nagios-plugins package
21
+ cfg_dir=/etc/nagios-plugins/config
22
+
23
+ # Debian uses by default a configuration directory where nagios3-common,
24
+ # other packages and the local admin can dump or link configuration
25
+ # files into.
26
+ cfg_dir=/etc/nagios3/conf.d
27
+
28
+ # OBJECT CONFIGURATION FILE(S)
29
+ # These are the object configuration files in which you define hosts,
30
+ # host groups, contacts, contact groups, services, etc.
31
+ # You can split your object definitions across several config files
32
+ # if you wish (as shown below), or keep them all in a single config file.
33
+
34
+ # You can specify individual object config files as shown below:
35
+ #cfg_file=/etc/nagios3/objects/commands.cfg
36
+ #cfg_file=/etc/nagios3/objects/contacts.cfg
37
+ #cfg_file=/etc/nagios3/objects/timeperiods.cfg
38
+ #cfg_file=/etc/nagios3/objects/templates.cfg
39
+
40
+ # Definitions for monitoring a Windows machine
41
+ #cfg_file=/etc/nagios3/objects/windows.cfg
42
+
43
+ # Definitions for monitoring a router/switch
44
+ #cfg_file=/etc/nagios3/objects/switch.cfg
45
+
46
+ # Definitions for monitoring a network printer
47
+ #cfg_file=/etc/nagios3/objects/printer.cfg
48
+
49
+
50
+ # You can also tell Nagios to process all config files (with a .cfg
51
+ # extension) in a particular directory by using the cfg_dir
52
+ # directive as shown below:
53
+
54
+ #cfg_dir=/etc/nagios3/servers
55
+ #cfg_dir=/etc/nagios3/printers
56
+ #cfg_dir=/etc/nagios3/switches
57
+ #cfg_dir=/etc/nagios3/routers
58
+
59
+
60
+
61
+
62
+ # OBJECT CACHE FILE
63
+ # This option determines where object definitions are cached when
64
+ # Nagios starts/restarts. The CGIs read object definitions from
65
+ # this cache file (rather than looking at the object config files
66
+ # directly) in order to prevent inconsistencies that can occur
67
+ # when the config files are modified after Nagios starts.
68
+
69
+ object_cache_file=/var/cache/nagios3/objects.cache
70
+
71
+
72
+
73
+ # PRE-CACHED OBJECT FILE
74
+ # This options determines the location of the precached object file.
75
+ # If you run Nagios with the -p command line option, it will preprocess
76
+ # your object configuration file(s) and write the cached config to this
77
+ # file. You can then start Nagios with the -u option to have it read
78
+ # object definitions from this precached file, rather than the standard
79
+ # object configuration files (see the cfg_file and cfg_dir options above).
80
+ # Using a precached object file can speed up the time needed to (re)start
81
+ # the Nagios process if you've got a large and/or complex configuration.
82
+ # Read the documentation section on optimizing Nagios to find our more
83
+ # about how this feature works.
84
+
85
+ precached_object_file=/var/lib/nagios3/objects.precache
86
+
87
+
88
+
89
+ # RESOURCE FILE
90
+ # This is an optional resource file that contains $USERx$ macro
91
+ # definitions. Multiple resource files can be specified by using
92
+ # multiple resource_file definitions. The CGIs will not attempt to
93
+ # read the contents of resource files, so information that is
94
+ # considered to be sensitive (usernames, passwords, etc) can be
95
+ # defined as macros in this file and restrictive permissions (600)
96
+ # can be placed on this file.
97
+
98
+ resource_file=/etc/nagios3/resource.cfg
99
+
100
+
101
+
102
+ # STATUS FILE
103
+ # This is where the current status of all monitored services and
104
+ # hosts is stored. Its contents are read and processed by the CGIs.
105
+ # The contents of the status file are deleted every time Nagios
106
+ # restarts.
107
+
108
+ status_file=/var/cache/nagios3/status.dat
109
+
110
+
111
+
112
+ # STATUS FILE UPDATE INTERVAL
113
+ # This option determines the frequency (in seconds) that
114
+ # Nagios will periodically dump program, host, and
115
+ # service status data.
116
+
117
+ status_update_interval=10
118
+
119
+
120
+
121
+ # NAGIOS USER
122
+ # This determines the effective user that Nagios should run as.
123
+ # You can either supply a username or a UID.
124
+
125
+ nagios_user=nagios
126
+
127
+
128
+
129
+ # NAGIOS GROUP
130
+ # This determines the effective group that Nagios should run as.
131
+ # You can either supply a group name or a GID.
132
+
133
+ nagios_group=nagios
134
+
135
+
136
+
137
+ # EXTERNAL COMMAND OPTION
138
+ # This option allows you to specify whether or not Nagios should check
139
+ # for external commands (in the command file defined below). By default
140
+ # Nagios will *not* check for external commands, just to be on the
141
+ # cautious side. If you want to be able to use the CGI command interface
142
+ # you will have to enable this.
143
+ # Values: 0 = disable commands, 1 = enable commands
144
+
145
+ check_external_commands=<%= nagios_check_external_commands %>
146
+
147
+
148
+
149
+ # EXTERNAL COMMAND CHECK INTERVAL
150
+ # This is the interval at which Nagios should check for external commands.
151
+ # This value works of the interval_length you specify later. If you leave
152
+ # that at its default value of 60 (seconds), a value of 1 here will cause
153
+ # Nagios to check for external commands every minute. If you specify a
154
+ # number followed by an "s" (i.e. 15s), this will be interpreted to mean
155
+ # actual seconds rather than a multiple of the interval_length variable.
156
+ # Note: In addition to reading the external command file at regularly
157
+ # scheduled intervals, Nagios will also check for external commands after
158
+ # event handlers are executed.
159
+ # NOTE: Setting this value to -1 causes Nagios to check the external
160
+ # command file as often as possible.
161
+
162
+ #command_check_interval=15s
163
+ command_check_interval=<%= nagios_command_check_interval %>
164
+
165
+
166
+
167
+ # EXTERNAL COMMAND FILE
168
+ # This is the file that Nagios checks for external command requests.
169
+ # It is also where the command CGI will write commands that are submitted
170
+ # by users, so it must be writeable by the user that the web server
171
+ # is running as (usually 'nobody'). Permissions should be set at the
172
+ # directory level instead of on the file, as the file is deleted every
173
+ # time its contents are processed.
174
+ # Debian Users: In case you didn't read README.Debian yet, _NOW_ is the
175
+ # time to do it.
176
+
177
+ command_file=/var/lib/nagios3/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=/var/run/nagios3/nagios3.pid
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=/var/cache/nagios3/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=/var/log/nagios3/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=/var/lib/nagios3/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
+ # SOFT STATE DEPENDENCIES
538
+ # This option determines whether or not Nagios will use soft state
539
+ # information when checking host and service dependencies. Normally
540
+ # Nagios will only use the latest hard host or service state when
541
+ # checking dependencies. If you want it to use the latest state (regardless
542
+ # of whether its a soft or hard state type), enable this option.
543
+ # Values:
544
+ # 0 = Don't use soft state dependencies (default)
545
+ # 1 = Use soft state dependencies
546
+
547
+ soft_state_dependencies=0
548
+
549
+
550
+
551
+ # TIME CHANGE ADJUSTMENT THRESHOLDS
552
+ # These options determine when Nagios will react to detected changes
553
+ # in system time (either forward or backwards).
554
+
555
+ #time_change_threshold=900
556
+
557
+
558
+
559
+ # AUTO-RESCHEDULING OPTION
560
+ # This option determines whether or not Nagios will attempt to
561
+ # automatically reschedule active host and service checks to
562
+ # "smooth" them out over time. This can help balance the load on
563
+ # the monitoring server.
564
+ # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
565
+ # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
566
+
567
+ auto_reschedule_checks=0
568
+
569
+
570
+
571
+ # AUTO-RESCHEDULING INTERVAL
572
+ # This option determines how often (in seconds) Nagios will
573
+ # attempt to automatically reschedule checks. This option only
574
+ # has an effect if the auto_reschedule_checks option is enabled.
575
+ # Default is 30 seconds.
576
+ # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
577
+ # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
578
+
579
+ auto_rescheduling_interval=30
580
+
581
+
582
+
583
+ # AUTO-RESCHEDULING WINDOW
584
+ # This option determines the "window" of time (in seconds) that
585
+ # Nagios will look at when automatically rescheduling checks.
586
+ # Only host and service checks that occur in the next X seconds
587
+ # (determined by this variable) will be rescheduled. This option
588
+ # only has an effect if the auto_reschedule_checks option is
589
+ # enabled. Default is 180 seconds (3 minutes).
590
+ # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
591
+ # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
592
+
593
+ auto_rescheduling_window=180
594
+
595
+
596
+
597
+ # SLEEP TIME
598
+ # This is the number of seconds to sleep between checking for system
599
+ # events and service checks that need to be run.
600
+
601
+ sleep_time=0.25
602
+
603
+
604
+
605
+ # TIMEOUT VALUES
606
+ # These options control how much time Nagios will allow various
607
+ # types of commands to execute before killing them off. Options
608
+ # are available for controlling maximum time allotted for
609
+ # service checks, host checks, event handlers, notifications, the
610
+ # ocsp command, and performance data commands. All values are in
611
+ # seconds.
612
+
613
+ service_check_timeout=60
614
+ host_check_timeout=30
615
+ event_handler_timeout=30
616
+ notification_timeout=30
617
+ ocsp_timeout=5
618
+ perfdata_timeout=5
619
+
620
+
621
+
622
+ # RETAIN STATE INFORMATION
623
+ # This setting determines whether or not Nagios will save state
624
+ # information for services and hosts before it shuts down. Upon
625
+ # startup Nagios will reload all saved service and host state
626
+ # information before starting to monitor. This is useful for
627
+ # maintaining long-term data on state statistics, etc, but will
628
+ # slow Nagios down a bit when it (re)starts. Since its only
629
+ # a one-time penalty, I think its well worth the additional
630
+ # startup delay.
631
+
632
+ retain_state_information=1
633
+
634
+
635
+
636
+ # STATE RETENTION FILE
637
+ # This is the file that Nagios should use to store host and
638
+ # service state information before it shuts down. The state
639
+ # information in this file is also read immediately prior to
640
+ # starting to monitor the network when Nagios is restarted.
641
+ # This file is used only if the retain_state_information
642
+ # variable is set to 1.
643
+
644
+ state_retention_file=/var/lib/nagios3/retention.dat
645
+
646
+
647
+
648
+ # RETENTION DATA UPDATE INTERVAL
649
+ # This setting determines how often (in minutes) that Nagios
650
+ # will automatically save retention data during normal operation.
651
+ # If you set this value to 0, Nagios will not save retention
652
+ # data at regular interval, but it will still save retention
653
+ # data before shutting down or restarting. If you have disabled
654
+ # state retention, this option has no effect.
655
+
656
+ retention_update_interval=60
657
+
658
+
659
+
660
+ # USE RETAINED PROGRAM STATE
661
+ # This setting determines whether or not Nagios will set
662
+ # program status variables based on the values saved in the
663
+ # retention file. If you want to use retained program status
664
+ # information, set this value to 1. If not, set this value
665
+ # to 0.
666
+
667
+ use_retained_program_state=1
668
+
669
+
670
+
671
+ # USE RETAINED SCHEDULING INFO
672
+ # This setting determines whether or not Nagios will retain
673
+ # the scheduling info (next check time) for hosts and services
674
+ # based on the values saved in the retention file. If you
675
+ # If you want to use retained scheduling info, set this
676
+ # value to 1. If not, set this value to 0.
677
+
678
+ use_retained_scheduling_info=1
679
+
680
+
681
+
682
+ # RETAINED ATTRIBUTE MASKS (ADVANCED FEATURE)
683
+ # The following variables are used to specify specific host and
684
+ # service attributes that should *not* be retained by Nagios during
685
+ # program restarts.
686
+ #
687
+ # The values of the masks are bitwise ANDs of values specified
688
+ # by the "MODATTR_" definitions found in include/common.h.
689
+ # For example, if you do not want the current enabled/disabled state
690
+ # of flap detection and event handlers for hosts to be retained, you
691
+ # would use a value of 24 for the host attribute mask...
692
+ # MODATTR_EVENT_HANDLER_ENABLED (8) + MODATTR_FLAP_DETECTION_ENABLED (16) = 24
693
+
694
+ # This mask determines what host attributes are not retained
695
+ retained_host_attribute_mask=0
696
+
697
+ # This mask determines what service attributes are not retained
698
+ retained_service_attribute_mask=0
699
+
700
+ # These two masks determine what process attributes are not retained.
701
+ # There are two masks, because some process attributes have host and service
702
+ # options. For example, you can disable active host checks, but leave active
703
+ # service checks enabled.
704
+ retained_process_host_attribute_mask=0
705
+ retained_process_service_attribute_mask=0
706
+
707
+ # These two masks determine what contact attributes are not retained.
708
+ # There are two masks, because some contact attributes have host and
709
+ # service options. For example, you can disable host notifications for
710
+ # a contact, but leave service notifications enabled for them.
711
+ retained_contact_host_attribute_mask=0
712
+ retained_contact_service_attribute_mask=0
713
+
714
+
715
+
716
+ # INTERVAL LENGTH
717
+ # This is the seconds per unit interval as used in the
718
+ # host/contact/service configuration files. Setting this to 60 means
719
+ # that each interval is one minute long (60 seconds). Other settings
720
+ # have not been tested much, so your mileage is likely to vary...
721
+
722
+ interval_length=60
723
+
724
+
725
+
726
+ # CHECK FOR UPDATES
727
+ # This option determines whether Nagios will automatically check to
728
+ # see if new updates (releases) are available. It is recommend that you
729
+ # enable this option to ensure that you stay on top of the latest critical
730
+ # patches to Nagios. Nagios is critical to you - make sure you keep it in
731
+ # good shape. Nagios will check once a day for new updates. Data collected
732
+ # by Nagios Enterprises from the update check is processed in accordance
733
+ # with our privacy policy - see http://api.nagios.org for details.
734
+
735
+ check_for_updates=1
736
+
737
+
738
+
739
+ # BARE UPDATE CHECK
740
+ # This option deterines what data Nagios will send to api.nagios.org when
741
+ # it checks for updates. By default, Nagios will send information on the
742
+ # current version of Nagios you have installed, as well as an indicator as
743
+ # to whether this was a new installation or not. Nagios Enterprises uses
744
+ # this data to determine the number of users running specific version of
745
+ # Nagios. Enable this option if you do not want this information to be sent.
746
+
747
+ bare_update_check=0
748
+
749
+
750
+
751
+ # AGGRESSIVE HOST CHECKING OPTION
752
+ # If you don't want to turn on aggressive host checking features, set
753
+ # this value to 0 (the default). Otherwise set this value to 1 to
754
+ # enable the aggressive check option. Read the docs for more info
755
+ # on what aggressive host check is or check out the source code in
756
+ # base/checks.c
757
+
758
+ use_aggressive_host_checking=0
759
+
760
+
761
+
762
+ # SERVICE CHECK EXECUTION OPTION
763
+ # This determines whether or not Nagios will actively execute
764
+ # service checks when it initially starts. If this option is
765
+ # disabled, checks are not actively made, but Nagios can still
766
+ # receive and process passive check results that come in. Unless
767
+ # you're implementing redundant hosts or have a special need for
768
+ # disabling the execution of service checks, leave this enabled!
769
+ # Values: 1 = enable checks, 0 = disable checks
770
+
771
+ execute_service_checks=1
772
+
773
+
774
+
775
+ # PASSIVE SERVICE CHECK ACCEPTANCE OPTION
776
+ # This determines whether or not Nagios will accept passive
777
+ # service checks results when it initially (re)starts.
778
+ # Values: 1 = accept passive checks, 0 = reject passive checks
779
+
780
+ accept_passive_service_checks=1
781
+
782
+
783
+
784
+ # HOST CHECK EXECUTION OPTION
785
+ # This determines whether or not Nagios will actively execute
786
+ # host checks when it initially starts. If this option is
787
+ # disabled, checks are not actively made, but Nagios can still
788
+ # receive and process passive check results that come in. Unless
789
+ # you're implementing redundant hosts or have a special need for
790
+ # disabling the execution of host checks, leave this enabled!
791
+ # Values: 1 = enable checks, 0 = disable checks
792
+
793
+ execute_host_checks=1
794
+
795
+
796
+
797
+ # PASSIVE HOST CHECK ACCEPTANCE OPTION
798
+ # This determines whether or not Nagios will accept passive
799
+ # host checks results when it initially (re)starts.
800
+ # Values: 1 = accept passive checks, 0 = reject passive checks
801
+
802
+ accept_passive_host_checks=1
803
+
804
+
805
+
806
+ # NOTIFICATIONS OPTION
807
+ # This determines whether or not Nagios will sent out any host or
808
+ # service notifications when it is initially (re)started.
809
+ # Values: 1 = enable notifications, 0 = disable notifications
810
+
811
+ enable_notifications=1
812
+
813
+
814
+
815
+ # EVENT HANDLER USE OPTION
816
+ # This determines whether or not Nagios will run any host or
817
+ # service event handlers when it is initially (re)started. Unless
818
+ # you're implementing redundant hosts, leave this option enabled.
819
+ # Values: 1 = enable event handlers, 0 = disable event handlers
820
+
821
+ enable_event_handlers=1
822
+
823
+
824
+
825
+ # PROCESS PERFORMANCE DATA OPTION
826
+ # This determines whether or not Nagios will process performance
827
+ # data returned from service and host checks. If this option is
828
+ # enabled, host performance data will be processed using the
829
+ # host_perfdata_command (defined below) and service performance
830
+ # data will be processed using the service_perfdata_command (also
831
+ # defined below). Read the HTML docs for more information on
832
+ # performance data.
833
+ # Values: 1 = process performance data, 0 = do not process performance data
834
+
835
+ process_performance_data=0
836
+
837
+
838
+
839
+ # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS
840
+ # These commands are run after every host and service check is
841
+ # performed. These commands are executed only if the
842
+ # enable_performance_data option (above) is set to 1. The command
843
+ # argument is the short name of a command definition that you
844
+ # define in your host configuration file. Read the HTML docs for
845
+ # more information on performance data.
846
+
847
+ #host_perfdata_command=process-host-perfdata
848
+ #service_perfdata_command=process-service-perfdata
849
+
850
+
851
+
852
+ # HOST AND SERVICE PERFORMANCE DATA FILES
853
+ # These files are used to store host and service performance data.
854
+ # Performance data is only written to these files if the
855
+ # enable_performance_data option (above) is set to 1.
856
+
857
+ #host_perfdata_file=/tmp/host-perfdata
858
+ #service_perfdata_file=/tmp/service-perfdata
859
+
860
+
861
+
862
+ # HOST AND SERVICE PERFORMANCE DATA FILE TEMPLATES
863
+ # These options determine what data is written (and how) to the
864
+ # performance data files. The templates may contain macros, special
865
+ # characters (\t for tab, \r for carriage return, \n for newline)
866
+ # and plain text. A newline is automatically added after each write
867
+ # to the performance data file. Some examples of what you can do are
868
+ # shown below.
869
+
870
+ #host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
871
+ #service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$
872
+
873
+
874
+
875
+ # HOST AND SERVICE PERFORMANCE DATA FILE MODES
876
+ # This option determines whether or not the host and service
877
+ # performance data files are opened in write ("w") or append ("a")
878
+ # mode. If you want to use named pipes, you should use the special
879
+ # pipe ("p") mode which avoid blocking at startup, otherwise you will
880
+ # likely want the defult append ("a") mode.
881
+
882
+ #host_perfdata_file_mode=a
883
+ #service_perfdata_file_mode=a
884
+
885
+
886
+
887
+ # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING INTERVAL
888
+ # These options determine how often (in seconds) the host and service
889
+ # performance data files are processed using the commands defined
890
+ # below. A value of 0 indicates the files should not be periodically
891
+ # processed.
892
+
893
+ #host_perfdata_file_processing_interval=0
894
+ #service_perfdata_file_processing_interval=0
895
+
896
+
897
+
898
+ # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS
899
+ # These commands are used to periodically process the host and
900
+ # service performance data files. The interval at which the
901
+ # processing occurs is determined by the options above.
902
+
903
+ #host_perfdata_file_processing_command=process-host-perfdata-file
904
+ #service_perfdata_file_processing_command=process-service-perfdata-file
905
+
906
+
907
+
908
+ # OBSESS OVER SERVICE CHECKS OPTION
909
+ # This determines whether or not Nagios will obsess over service
910
+ # checks and run the ocsp_command defined below. Unless you're
911
+ # planning on implementing distributed monitoring, do not enable
912
+ # this option. Read the HTML docs for more information on
913
+ # implementing distributed monitoring.
914
+ # Values: 1 = obsess over services, 0 = do not obsess (default)
915
+
916
+ obsess_over_services=0
917
+
918
+
919
+
920
+ # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND
921
+ # This is the command that is run for every service check that is
922
+ # processed by Nagios. This command is executed only if the
923
+ # obsess_over_services option (above) is set to 1. The command
924
+ # argument is the short name of a command definition that you
925
+ # define in your host configuration file. Read the HTML docs for
926
+ # more information on implementing distributed monitoring.
927
+
928
+ #ocsp_command=somecommand
929
+
930
+
931
+
932
+ # OBSESS OVER HOST CHECKS OPTION
933
+ # This determines whether or not Nagios will obsess over host
934
+ # checks and run the ochp_command defined below. Unless you're
935
+ # planning on implementing distributed monitoring, do not enable
936
+ # this option. Read the HTML docs for more information on
937
+ # implementing distributed monitoring.
938
+ # Values: 1 = obsess over hosts, 0 = do not obsess (default)
939
+
940
+ obsess_over_hosts=0
941
+
942
+
943
+
944
+ # OBSESSIVE COMPULSIVE HOST PROCESSOR COMMAND
945
+ # This is the command that is run for every host check that is
946
+ # processed by Nagios. This command is executed only if the
947
+ # obsess_over_hosts option (above) is set to 1. The command
948
+ # argument is the short name of a command definition that you
949
+ # define in your host configuration file. Read the HTML docs for
950
+ # more information on implementing distributed monitoring.
951
+
952
+ #ochp_command=somecommand
953
+
954
+
955
+
956
+ # TRANSLATE PASSIVE HOST CHECKS OPTION
957
+ # This determines whether or not Nagios will translate
958
+ # DOWN/UNREACHABLE passive host check results into their proper
959
+ # state for this instance of Nagios. This option is useful
960
+ # if you have distributed or failover monitoring setup. In
961
+ # these cases your other Nagios servers probably have a different
962
+ # "view" of the network, with regards to the parent/child relationship
963
+ # of hosts. If a distributed monitoring server thinks a host
964
+ # is DOWN, it may actually be UNREACHABLE from the point of
965
+ # this Nagios instance. Enabling this option will tell Nagios
966
+ # to translate any DOWN or UNREACHABLE host states it receives
967
+ # passively into the correct state from the view of this server.
968
+ # Values: 1 = perform translation, 0 = do not translate (default)
969
+
970
+ translate_passive_host_checks=0
971
+
972
+
973
+
974
+ # PASSIVE HOST CHECKS ARE SOFT OPTION
975
+ # This determines whether or not Nagios will treat passive host
976
+ # checks as being HARD or SOFT. By default, a passive host check
977
+ # result will put a host into a HARD state type. This can be changed
978
+ # by enabling this option.
979
+ # Values: 0 = passive checks are HARD, 1 = passive checks are SOFT
980
+
981
+ passive_host_checks_are_soft=0
982
+
983
+
984
+
985
+ # ORPHANED HOST/SERVICE CHECK OPTIONS
986
+ # These options determine whether or not Nagios will periodically
987
+ # check for orphaned host service checks. Since service checks are
988
+ # not rescheduled until the results of their previous execution
989
+ # instance are processed, there exists a possibility that some
990
+ # checks may never get rescheduled. A similar situation exists for
991
+ # host checks, although the exact scheduling details differ a bit
992
+ # from service checks. Orphaned checks seem to be a rare
993
+ # problem and should not happen under normal circumstances.
994
+ # If you have problems with service checks never getting
995
+ # rescheduled, make sure you have orphaned service checks enabled.
996
+ # Values: 1 = enable checks, 0 = disable checks
997
+
998
+ check_for_orphaned_services=1
999
+ check_for_orphaned_hosts=1
1000
+
1001
+
1002
+
1003
+ # SERVICE FRESHNESS CHECK OPTION
1004
+ # This option determines whether or not Nagios will periodically
1005
+ # check the "freshness" of service results. Enabling this option
1006
+ # is useful for ensuring passive checks are received in a timely
1007
+ # manner.
1008
+ # Values: 1 = enabled freshness checking, 0 = disable freshness checking
1009
+
1010
+ check_service_freshness=1
1011
+
1012
+
1013
+
1014
+ # SERVICE FRESHNESS CHECK INTERVAL
1015
+ # This setting determines how often (in seconds) Nagios will
1016
+ # check the "freshness" of service check results. If you have
1017
+ # disabled service freshness checking, this option has no effect.
1018
+
1019
+ service_freshness_check_interval=60
1020
+
1021
+
1022
+
1023
+ # HOST FRESHNESS CHECK OPTION
1024
+ # This option determines whether or not Nagios will periodically
1025
+ # check the "freshness" of host results. Enabling this option
1026
+ # is useful for ensuring passive checks are received in a timely
1027
+ # manner.
1028
+ # Values: 1 = enabled freshness checking, 0 = disable freshness checking
1029
+
1030
+ check_host_freshness=0
1031
+
1032
+
1033
+
1034
+ # HOST FRESHNESS CHECK INTERVAL
1035
+ # This setting determines how often (in seconds) Nagios will
1036
+ # check the "freshness" of host check results. If you have
1037
+ # disabled host freshness checking, this option has no effect.
1038
+
1039
+ host_freshness_check_interval=60
1040
+
1041
+
1042
+
1043
+
1044
+ # ADDITIONAL FRESHNESS THRESHOLD LATENCY
1045
+ # This setting determines the number of seconds that Nagios
1046
+ # will add to any host and service freshness thresholds that
1047
+ # it calculates (those not explicitly specified by the user).
1048
+
1049
+ additional_freshness_latency=15
1050
+
1051
+
1052
+
1053
+
1054
+ # FLAP DETECTION OPTION
1055
+ # This option determines whether or not Nagios will try
1056
+ # and detect hosts and services that are "flapping".
1057
+ # Flapping occurs when a host or service changes between
1058
+ # states too frequently. When Nagios detects that a
1059
+ # host or service is flapping, it will temporarily suppress
1060
+ # notifications for that host/service until it stops
1061
+ # flapping. Flap detection is very experimental, so read
1062
+ # the HTML documentation before enabling this feature!
1063
+ # Values: 1 = enable flap detection
1064
+ # 0 = disable flap detection (default)
1065
+
1066
+ enable_flap_detection=1
1067
+
1068
+
1069
+
1070
+ # FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES
1071
+ # Read the HTML documentation on flap detection for
1072
+ # an explanation of what this option does. This option
1073
+ # has no effect if flap detection is disabled.
1074
+
1075
+ low_service_flap_threshold=5.0
1076
+ high_service_flap_threshold=20.0
1077
+ low_host_flap_threshold=5.0
1078
+ high_host_flap_threshold=20.0
1079
+
1080
+
1081
+
1082
+ # DATE FORMAT OPTION
1083
+ # This option determines how short dates are displayed. Valid options
1084
+ # include:
1085
+ # us (MM-DD-YYYY HH:MM:SS)
1086
+ # euro (DD-MM-YYYY HH:MM:SS)
1087
+ # iso8601 (YYYY-MM-DD HH:MM:SS)
1088
+ # strict-iso8601 (YYYY-MM-DDTHH:MM:SS)
1089
+ #
1090
+
1091
+ date_format=iso8601
1092
+
1093
+
1094
+
1095
+
1096
+ # TIMEZONE OFFSET
1097
+ # This option is used to override the default timezone that this
1098
+ # instance of Nagios runs in. If not specified, Nagios will use
1099
+ # the system configured timezone.
1100
+ #
1101
+ # NOTE: In order to display the correct timezone in the CGIs, you
1102
+ # will also need to alter the Apache directives for the CGI path
1103
+ # to include your timezone. Example:
1104
+ #
1105
+ # <Directory "/usr/local/nagios/sbin/">
1106
+ # SetEnv TZ "Australia/Brisbane"
1107
+ # ...
1108
+ # </Directory>
1109
+
1110
+ #use_timezone=US/Mountain
1111
+ #use_timezone=Australia/Brisbane
1112
+
1113
+
1114
+
1115
+
1116
+ # P1.PL FILE LOCATION
1117
+ # This value determines where the p1.pl perl script (used by the
1118
+ # embedded Perl interpreter) is located. If you didn't compile
1119
+ # Nagios with embedded Perl support, this option has no effect.
1120
+
1121
+ p1_file=/usr/lib/nagios3/p1.pl
1122
+
1123
+
1124
+
1125
+ # EMBEDDED PERL INTERPRETER OPTION
1126
+ # This option determines whether or not the embedded Perl interpreter
1127
+ # will be enabled during runtime. This option has no effect if Nagios
1128
+ # has not been compiled with support for embedded Perl.
1129
+ # Values: 0 = disable interpreter, 1 = enable interpreter
1130
+
1131
+ enable_embedded_perl=1
1132
+
1133
+
1134
+
1135
+ # EMBEDDED PERL USAGE OPTION
1136
+ # This option determines whether or not Nagios will process Perl plugins
1137
+ # and scripts with the embedded Perl interpreter if the plugins/scripts
1138
+ # do not explicitly indicate whether or not it is okay to do so. Read
1139
+ # the HTML documentation on the embedded Perl interpreter for more
1140
+ # information on how this option works.
1141
+
1142
+ use_embedded_perl_implicitly=1
1143
+
1144
+
1145
+
1146
+ # ILLEGAL OBJECT NAME CHARACTERS
1147
+ # This option allows you to specify illegal characters that cannot
1148
+ # be used in host names, service descriptions, or names of other
1149
+ # object types.
1150
+
1151
+ illegal_object_name_chars=`~!$%^&*|'"<>?,()=
1152
+
1153
+
1154
+
1155
+ # ILLEGAL MACRO OUTPUT CHARACTERS
1156
+ # This option allows you to specify illegal characters that are
1157
+ # stripped from macros before being used in notifications, event
1158
+ # handlers, etc. This DOES NOT affect macros used in service or
1159
+ # host check commands.
1160
+ # The following macros are stripped of the characters you specify:
1161
+ # $HOSTOUTPUT$
1162
+ # $HOSTPERFDATA$
1163
+ # $HOSTACKAUTHOR$
1164
+ # $HOSTACKCOMMENT$
1165
+ # $SERVICEOUTPUT$
1166
+ # $SERVICEPERFDATA$
1167
+ # $SERVICEACKAUTHOR$
1168
+ # $SERVICEACKCOMMENT$
1169
+
1170
+ illegal_macro_output_chars=`~$&|'"<>
1171
+
1172
+
1173
+
1174
+ # REGULAR EXPRESSION MATCHING
1175
+ # This option controls whether or not regular expression matching
1176
+ # takes place in the object config files. Regular expression
1177
+ # matching is used to match host, hostgroup, service, and service
1178
+ # group names/descriptions in some fields of various object types.
1179
+ # Values: 1 = enable regexp matching, 0 = disable regexp matching
1180
+
1181
+ use_regexp_matching=0
1182
+
1183
+
1184
+
1185
+ # "TRUE" REGULAR EXPRESSION MATCHING
1186
+ # This option controls whether or not "true" regular expression
1187
+ # matching takes place in the object config files. This option
1188
+ # only has an effect if regular expression matching is enabled
1189
+ # (see above). If this option is DISABLED, regular expression
1190
+ # matching only occurs if a string contains wildcard characters
1191
+ # (* and ?). If the option is ENABLED, regexp matching occurs
1192
+ # all the time (which can be annoying).
1193
+ # Values: 1 = enable true matching, 0 = disable true matching
1194
+
1195
+ use_true_regexp_matching=0
1196
+
1197
+
1198
+
1199
+ # ADMINISTRATOR EMAIL/PAGER ADDRESSES
1200
+ # The email and pager address of a global administrator (likely you).
1201
+ # Nagios never uses these values itself, but you can access them by
1202
+ # using the $ADMINEMAIL$ and $ADMINPAGER$ macros in your notification
1203
+ # commands.
1204
+
1205
+ admin_email=root@localhost
1206
+ admin_pager=pageroot@localhost
1207
+
1208
+
1209
+
1210
+ # DAEMON CORE DUMP OPTION
1211
+ # This option determines whether or not Nagios is allowed to create
1212
+ # a core dump when it runs as a daemon. Note that it is generally
1213
+ # considered bad form to allow this, but it may be useful for
1214
+ # debugging purposes. Enabling this option doesn't guarantee that
1215
+ # a core file will be produced, but that's just life...
1216
+ # Values: 1 - Allow core dumps
1217
+ # 0 - Do not allow core dumps (default)
1218
+
1219
+ daemon_dumps_core=0
1220
+
1221
+
1222
+
1223
+ # LARGE INSTALLATION TWEAKS OPTION
1224
+ # This option determines whether or not Nagios will take some shortcuts
1225
+ # which can save on memory and CPU usage in large Nagios installations.
1226
+ # Read the documentation for more information on the benefits/tradeoffs
1227
+ # of enabling this option.
1228
+ # Values: 1 - Enabled tweaks
1229
+ # 0 - Disable tweaks (default)
1230
+
1231
+ use_large_installation_tweaks=0
1232
+
1233
+
1234
+
1235
+ # ENABLE ENVIRONMENT MACROS
1236
+ # This option determines whether or not Nagios will make all standard
1237
+ # macros available as environment variables when host/service checks
1238
+ # and system commands (event handlers, notifications, etc.) are
1239
+ # executed. Enabling this option can cause performance issues in
1240
+ # large installations, as it will consume a bit more memory and (more
1241
+ # importantly) consume more CPU.
1242
+ # Values: 1 - Enable environment variable macros (default)
1243
+ # 0 - Disable environment variable macros
1244
+
1245
+ enable_environment_macros=1
1246
+
1247
+
1248
+
1249
+ # CHILD PROCESS MEMORY OPTION
1250
+ # This option determines whether or not Nagios will free memory in
1251
+ # child processes (processed used to execute system commands and host/
1252
+ # service checks). If you specify a value here, it will override
1253
+ # program defaults.
1254
+ # Value: 1 - Free memory in child processes
1255
+ # 0 - Do not free memory in child processes
1256
+
1257
+ #free_child_process_memory=1
1258
+
1259
+
1260
+
1261
+ # CHILD PROCESS FORKING BEHAVIOR
1262
+ # This option determines how Nagios will fork child processes
1263
+ # (used to execute system commands and host/service checks). Normally
1264
+ # child processes are fork()ed twice, which provides a very high level
1265
+ # of isolation from problems. Fork()ing once is probably enough and will
1266
+ # save a great deal on CPU usage (in large installs), so you might
1267
+ # want to consider using this. If you specify a value here, it will
1268
+ # program defaults.
1269
+ # Value: 1 - Child processes fork() twice
1270
+ # 0 - Child processes fork() just once
1271
+
1272
+ #child_processes_fork_twice=1
1273
+
1274
+
1275
+
1276
+ # DEBUG LEVEL
1277
+ # This option determines how much (if any) debugging information will
1278
+ # be written to the debug file. OR values together to log multiple
1279
+ # types of information.
1280
+ # Values:
1281
+ # -1 = Everything
1282
+ # 0 = Nothing
1283
+ # 1 = Functions
1284
+ # 2 = Configuration
1285
+ # 4 = Process information
1286
+ # 8 = Scheduled events
1287
+ # 16 = Host/service checks
1288
+ # 32 = Notifications
1289
+ # 64 = Event broker
1290
+ # 128 = External commands
1291
+ # 256 = Commands
1292
+ # 512 = Scheduled downtime
1293
+ # 1024 = Comments
1294
+ # 2048 = Macros
1295
+
1296
+ debug_level=0
1297
+
1298
+
1299
+
1300
+ # DEBUG VERBOSITY
1301
+ # This option determines how verbose the debug log out will be.
1302
+ # Values: 0 = Brief output
1303
+ # 1 = More detailed
1304
+ # 2 = Very detailed
1305
+
1306
+ debug_verbosity=1
1307
+
1308
+
1309
+
1310
+ # DEBUG FILE
1311
+ # This option determines where Nagios should write debugging information.
1312
+
1313
+ debug_file=/var/log/nagios3/nagios.debug
1314
+
1315
+
1316
+
1317
+ # MAX DEBUG FILE SIZE
1318
+ # This option determines the maximum size (in bytes) of the debug file. If
1319
+ # the file grows larger than this size, it will be renamed with a .old
1320
+ # extension. If a file already exists with a .old extension it will
1321
+ # automatically be deleted. This helps ensure your disk space usage doesn't
1322
+ # get out of control when debugging Nagios.
1323
+
1324
+ max_debug_file_size=1000000
1325
+
1326
+