Guest User

Nagios.cfg

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