source: nagios/nagios.cfg@ 397

Last change on this file since 397 was 381, checked in by Rick van der Zwet, 12 years ago

Now without typos'

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