source: noc/nagios/nagios.cfg @ 1060

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