Advertisement
Asjas

Nagios.cfg

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