Advertisement
keith_shannon

Nagios.cfg PNP4Nagios

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