| 1 |
############################################################################## |
| 2 |
# |
| 3 |
# NAGIOS.CFG - Sample Main Config File for Nagios @VERSION@ |
| 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=@localstatedir@/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=@sysconfdir@/objects/commands.cfg |
| 30 |
cfg_file=@sysconfdir@/objects/contacts.cfg |
| 31 |
cfg_file=@sysconfdir@/objects/timeperiods.cfg |
| 32 |
cfg_file=@sysconfdir@/objects/templates.cfg |
| 33 |
|
| 34 |
# Definitions for monitoring the local (Linux) host |
| 35 |
cfg_file=@sysconfdir@/objects/localhost.cfg |
| 36 |
|
| 37 |
# Definitions for monitoring a Windows machine |
| 38 |
#cfg_file=@sysconfdir@/objects/windows.cfg |
| 39 |
|
| 40 |
# Definitions for monitoring a router/switch |
| 41 |
#cfg_file=@sysconfdir@/objects/switch.cfg |
| 42 |
|
| 43 |
# Definitions for monitoring a network printer |
| 44 |
#cfg_file=@sysconfdir@/objects/printer.cfg |
| 45 |
|
| 46 |
|
| 47 |
# You can also tell Nagios to process all config files (with a .cfg |
| 48 |
# extension) in a particular directory by using the cfg_dir |
| 49 |
# directive as shown below: |
| 50 |
|
| 51 |
#cfg_dir=@sysconfdir@/servers |
| 52 |
#cfg_dir=@sysconfdir@/printers |
| 53 |
#cfg_dir=@sysconfdir@/switches |
| 54 |
#cfg_dir=@sysconfdir@/routers |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
# OBJECT CACHE FILE |
| 60 |
# This option determines where object definitions are cached when |
| 61 |
# Nagios starts/restarts. The CGIs read object definitions from |
| 62 |
# this cache file (rather than looking at the object config files |
| 63 |
# directly) in order to prevent inconsistencies that can occur |
| 64 |
# when the config files are modified after Nagios starts. |
| 65 |
|
| 66 |
object_cache_file=@localstatedir@/objects.cache |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
# PRE-CACHED OBJECT FILE |
| 71 |
# This options determines the location of the precached object file. |
| 72 |
# If you run Nagios with the -p command line option, it will preprocess |
| 73 |
# your object configuration file(s) and write the cached config to this |
| 74 |
# file. You can then start Nagios with the -u option to have it read |
| 75 |
# object definitions from this precached file, rather than the standard |
| 76 |
# object configuration files (see the cfg_file and cfg_dir options above). |
| 77 |
# Using a precached object file can speed up the time needed to (re)start |
| 78 |
# the Nagios process if you've got a large and/or complex configuration. |
| 79 |
# Read the documentation section on optimizing Nagios to find our more |
| 80 |
# about how this feature works. |
| 81 |
|
| 82 |
precached_object_file=@localstatedir@/objects.precache |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
# RESOURCE FILE |
| 87 |
# This is an optional resource file that contains $USERx$ macro |
| 88 |
# definitions. Multiple resource files can be specified by using |
| 89 |
# multiple resource_file definitions. The CGIs will not attempt to |
| 90 |
# read the contents of resource files, so information that is |
| 91 |
# considered to be sensitive (usernames, passwords, etc) can be |
| 92 |
# defined as macros in this file and restrictive permissions (600) |
| 93 |
# can be placed on this file. |
| 94 |
|
| 95 |
resource_file=@sysconfdir@/resource.cfg |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
# STATUS FILE |
| 100 |
# This is where the current status of all monitored services and |
| 101 |
# hosts is stored. Its contents are read and processed by the CGIs. |
| 102 |
# The contents of the status file are deleted every time Nagios |
| 103 |
# restarts. |
| 104 |
|
| 105 |
status_file=@localstatedir@/status.dat |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
# STATUS FILE UPDATE INTERVAL |
| 110 |
# This option determines the frequency (in seconds) that |
| 111 |
# Nagios will periodically dump program, host, and |
| 112 |
# service status data. |
| 113 |
|
| 114 |
status_update_interval=10 |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
# NAGIOS USER |
| 119 |
# This determines the effective user that Nagios should run as. |
| 120 |
# You can either supply a username or a UID. |
| 121 |
|
| 122 |
nagios_user=@nagios_user@ |
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
# NAGIOS GROUP |
| 127 |
# This determines the effective group that Nagios should run as. |
| 128 |
# You can either supply a group name or a GID. |
| 129 |
|
| 130 |
nagios_group=@nagios_grp@ |
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
# EXTERNAL COMMAND OPTION |
| 135 |
# This option allows you to specify whether or not Nagios should check |
| 136 |
# for external commands (in the command file defined below). |
| 137 |
# By default Nagios will check for external commands. |
| 138 |
# If you want to be able to use the CGI command interface |
| 139 |
# you will have to enable this. |
| 140 |
# Values: 0 = disable commands, 1 = enable commands |
| 141 |
|
| 142 |
check_external_commands=1 |
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
# EXTERNAL COMMAND FILE |
| 147 |
# This is the file that Nagios checks for external command requests. |
| 148 |
# It is also where the command CGI will write commands that are submitted |
| 149 |
# by users, so it must be writeable by the user that the web server |
| 150 |
# is running as (usually 'nobody'). Permissions should be set at the |
| 151 |
# directory level instead of on the file, as the file is deleted every |
| 152 |
# time its contents are processed. |
| 153 |
|
| 154 |
command_file=@localstatedir@/rw/nagios.cmd |
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
# QUERY HANDLER INTERFACE |
| 159 |
# This is the socket that is created for the Query Handler interface |
| 160 |
|
| 161 |
#query_socket=@localstatedir@/rw/nagios.qh |
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
# LOCK FILE |
| 166 |
# This is the lockfile that Nagios will use to store its PID number |
| 167 |
# in when it is running in daemon mode. |
| 168 |
|
| 169 |
lock_file=@subsyslockfile@ |
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
# TEMP FILE |
| 174 |
# This is a temporary file that is used as scratch space when Nagios |
| 175 |
# updates the status log, cleans the comment file, etc. This file |
| 176 |
# is created, used, and deleted throughout the time that Nagios is |
| 177 |
# running. |
| 178 |
|
| 179 |
temp_file=@localstatedir@/nagios.tmp |
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
# TEMP PATH |
| 184 |
# This is path where Nagios can create temp files for service and |
| 185 |
# host check results, etc. |
| 186 |
|
| 187 |
temp_path=@TMPDIR@ |
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
# EVENT BROKER OPTIONS |
| 192 |
# Controls what (if any) data gets sent to the event broker. |
| 193 |
# Values: 0 = Broker nothing |
| 194 |
# -1 = Broker everything |
| 195 |
# <other> = See documentation |
| 196 |
|
| 197 |
event_broker_options=-1 |
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
# EVENT BROKER MODULE(S) |
| 202 |
# This directive is used to specify an event broker module that should |
| 203 |
# by loaded by Nagios at startup. Use multiple directives if you want |
| 204 |
# to load more than one module. Arguments that should be passed to |
| 205 |
# the module at startup are separated from the module path by a space. |
| 206 |
# |
| 207 |
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 208 |
# WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING |
| 209 |
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 210 |
# |
| 211 |
# Do NOT overwrite modules while they are being used by Nagios or Nagios |
| 212 |
# will crash in a fiery display of SEGFAULT glory. This is a bug/limitation |
| 213 |
# either in dlopen(), the kernel, and/or the filesystem. And maybe Nagios... |
| 214 |
# |
| 215 |
# The correct/safe way of updating a module is by using one of these methods: |
| 216 |
# 1. Shutdown Nagios, replace the module file, restart Nagios |
| 217 |
# 2. Delete the original module file, move the new module file into place, |
| 218 |
# restart Nagios |
| 219 |
# |
| 220 |
# Example: |
| 221 |
# |
| 222 |
# broker_module=<modulepath> [moduleargs] |
| 223 |
|
| 224 |
#broker_module=/somewhere/module1.o |
| 225 |
#broker_module=/somewhere/module2.o arg1 arg2=3 debug=0 |
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
# LOG ROTATION METHOD |
| 230 |
# This is the log rotation method that Nagios should use to rotate |
| 231 |
# the main log file. Values are as follows.. |
| 232 |
# n = None - don't rotate the log |
| 233 |
# h = Hourly rotation (top of the hour) |
| 234 |
# d = Daily rotation (midnight every day) |
| 235 |
# w = Weekly rotation (midnight on Saturday evening) |
| 236 |
# m = Monthly rotation (midnight last day of month) |
| 237 |
|
| 238 |
log_rotation_method=d |
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
# LOG ARCHIVE PATH |
| 243 |
# This is the directory where archived (rotated) log files should be |
| 244 |
# placed (assuming you've chosen to do log rotation). |
| 245 |
|
| 246 |
log_archive_path=@localstatedir@/archives |
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
# LOGGING OPTIONS |
| 251 |
# If you want messages logged to the syslog facility, as well as the |
| 252 |
# Nagios log file set this option to 1. If not, set it to 0. |
| 253 |
|
| 254 |
use_syslog=1 |
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
# NOTIFICATION LOGGING OPTION |
| 259 |
# If you don't want notifications to be logged, set this value to 0. |
| 260 |
# If notifications should be logged, set the value to 1. |
| 261 |
|
| 262 |
log_notifications=1 |
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
# SERVICE RETRY LOGGING OPTION |
| 267 |
# If you don't want service check retries to be logged, set this value |
| 268 |
# to 0. If retries should be logged, set the value to 1. |
| 269 |
|
| 270 |
log_service_retries=1 |
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
# HOST RETRY LOGGING OPTION |
| 275 |
# If you don't want host check retries to be logged, set this value to |
| 276 |
# 0. If retries should be logged, set the value to 1. |
| 277 |
|
| 278 |
log_host_retries=1 |
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
# EVENT HANDLER LOGGING OPTION |
| 283 |
# If you don't want host and service event handlers to be logged, set |
| 284 |
# this value to 0. If event handlers should be logged, set the value |
| 285 |
# to 1. |
| 286 |
|
| 287 |
log_event_handlers=1 |
| 288 |
|
| 289 |
|
| 290 |
|
| 291 |
# INITIAL STATES LOGGING OPTION |
| 292 |
# If you want Nagios to log all initial host and service states to |
| 293 |
# the main log file (the first time the service or host is checked) |
| 294 |
# you can enable this option by setting this value to 1. If you |
| 295 |
# are not using an external application that does long term state |
| 296 |
# statistics reporting, you do not need to enable this option. In |
| 297 |
# this case, set the value to 0. |
| 298 |
|
| 299 |
log_initial_states=0 |
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
# CURRENT STATES LOGGING OPTION |
| 304 |
# If you don't want Nagios to log all current host and service states |
| 305 |
# after log has been rotated to the main log file, you can disable this |
| 306 |
# option by setting this value to 0. Default value is 1. |
| 307 |
|
| 308 |
log_current_states=1 |
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
# EXTERNAL COMMANDS LOGGING OPTION |
| 313 |
# If you don't want Nagios to log external commands, set this value |
| 314 |
# to 0. If external commands should be logged, set this value to 1. |
| 315 |
# Note: This option does not include logging of passive service |
| 316 |
# checks - see the option below for controlling whether or not |
| 317 |
# passive checks are logged. |
| 318 |
|
| 319 |
log_external_commands=1 |
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
# PASSIVE CHECKS LOGGING OPTION |
| 324 |
# If you don't want Nagios to log passive host and service checks, set |
| 325 |
# this value to 0. If passive checks should be logged, set |
| 326 |
# this value to 1. |
| 327 |
|
| 328 |
log_passive_checks=1 |
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
# GLOBAL HOST AND SERVICE EVENT HANDLERS |
| 333 |
# These options allow you to specify a host and service event handler |
| 334 |
# command that is to be run for every host or service state change. |
| 335 |
# The global event handler is executed immediately prior to the event |
| 336 |
# handler that you have optionally specified in each host or |
| 337 |
# service definition. The command argument is the short name of a |
| 338 |
# command definition that you define in your host configuration file. |
| 339 |
# Read the HTML docs for more information. |
| 340 |
|
| 341 |
#global_host_event_handler=somecommand |
| 342 |
#global_service_event_handler=somecommand |
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
# SERVICE INTER-CHECK DELAY METHOD |
| 347 |
# This is the method that Nagios should use when initially |
| 348 |
# "spreading out" service checks when it starts monitoring. The |
| 349 |
# default is to use smart delay calculation, which will try to |
| 350 |
# space all service checks out evenly to minimize CPU load. |
| 351 |
# Using the dumb setting will cause all checks to be scheduled |
| 352 |
# at the same time (with no delay between them)! This is not a |
| 353 |
# good thing for production, but is useful when testing the |
| 354 |
# parallelization functionality. |
| 355 |
# n = None - don't use any delay between checks |
| 356 |
# d = Use a "dumb" delay of 1 second between checks |
| 357 |
# s = Use "smart" inter-check delay calculation |
| 358 |
# x.xx = Use an inter-check delay of x.xx seconds |
| 359 |
|
| 360 |
service_inter_check_delay_method=s |
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
# MAXIMUM SERVICE CHECK SPREAD |
| 365 |
# This variable determines the timeframe (in minutes) from the |
| 366 |
# program start time that an initial check of all services should |
| 367 |
# be completed. Default is 30 minutes. |
| 368 |
|
| 369 |
max_service_check_spread=30 |
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
# SERVICE CHECK INTERLEAVE FACTOR |
| 374 |
# This variable determines how service checks are interleaved. |
| 375 |
# Interleaving the service checks allows for a more even |
| 376 |
# distribution of service checks and reduced load on remote |
| 377 |
# hosts. Setting this value to 1 is equivalent to how versions |
| 378 |
# of Nagios previous to 0.0.5 did service checks. Set this |
| 379 |
# value to s (smart) for automatic calculation of the interleave |
| 380 |
# factor unless you have a specific reason to change it. |
| 381 |
# s = Use "smart" interleave factor calculation |
| 382 |
# x = Use an interleave factor of x, where x is a |
| 383 |
# number greater than or equal to 1. |
| 384 |
|
| 385 |
service_interleave_factor=s |
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
# HOST INTER-CHECK DELAY METHOD |
| 390 |
# This is the method that Nagios should use when initially |
| 391 |
# "spreading out" host checks when it starts monitoring. The |
| 392 |
# default is to use smart delay calculation, which will try to |
| 393 |
# space all host checks out evenly to minimize CPU load. |
| 394 |
# Using the dumb setting will cause all checks to be scheduled |
| 395 |
# at the same time (with no delay between them)! |
| 396 |
# n = None - don't use any delay between checks |
| 397 |
# d = Use a "dumb" delay of 1 second between checks |
| 398 |
# s = Use "smart" inter-check delay calculation |
| 399 |
# x.xx = Use an inter-check delay of x.xx seconds |
| 400 |
|
| 401 |
host_inter_check_delay_method=s |
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
# MAXIMUM HOST CHECK SPREAD |
| 406 |
# This variable determines the timeframe (in minutes) from the |
| 407 |
# program start time that an initial check of all hosts should |
| 408 |
# be completed. Default is 30 minutes. |
| 409 |
|
| 410 |
max_host_check_spread=30 |
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
# MAXIMUM CONCURRENT SERVICE CHECKS |
| 415 |
# This option allows you to specify the maximum number of |
| 416 |
# service checks that can be run in parallel at any given time. |
| 417 |
# Specifying a value of 1 for this variable essentially prevents |
| 418 |
# any service checks from being parallelized. A value of 0 |
| 419 |
# will not restrict the number of concurrent checks that are |
| 420 |
# being executed. |
| 421 |
|
| 422 |
max_concurrent_checks=0 |
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
# HOST AND SERVICE CHECK REAPER FREQUENCY |
| 427 |
# This is the frequency (in seconds!) that Nagios will process |
| 428 |
# the results of host and service checks. |
| 429 |
|
| 430 |
check_result_reaper_frequency=10 |
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
|
| 435 |
# MAX CHECK RESULT REAPER TIME |
| 436 |
# This is the max amount of time (in seconds) that a single |
| 437 |
# check result reaper event will be allowed to run before |
| 438 |
# returning control back to Nagios so it can perform other |
| 439 |
# duties. |
| 440 |
|
| 441 |
max_check_result_reaper_time=30 |
| 442 |
|
| 443 |
|
| 444 |
|
| 445 |
|
| 446 |
# CHECK RESULT PATH |
| 447 |
# This is directory where Nagios stores the results of host and |
| 448 |
# service checks that have not yet been processed. |
| 449 |
# |
| 450 |
# Note: Make sure that only one instance of Nagios has access |
| 451 |
# to this directory! |
| 452 |
|
| 453 |
check_result_path=@CHECKRESULTDIR@ |
| 454 |
|
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
# MAX CHECK RESULT FILE AGE |
| 459 |
# This option determines the maximum age (in seconds) which check |
| 460 |
# result files are considered to be valid. Files older than this |
| 461 |
# threshold will be mercilessly deleted without further processing. |
| 462 |
|
| 463 |
max_check_result_file_age=3600 |
| 464 |
|
| 465 |
|
| 466 |
|
| 467 |
|
| 468 |
# CACHED HOST CHECK HORIZON |
| 469 |
# This option determines the maximum amount of time (in seconds) |
| 470 |
# that the state of a previous host check is considered current. |
| 471 |
# Cached host states (from host checks that were performed more |
| 472 |
# recently that the timeframe specified by this value) can immensely |
| 473 |
# improve performance in regards to the host check logic. |
| 474 |
# Too high of a value for this option may result in inaccurate host |
| 475 |
# states being used by Nagios, while a lower value may result in a |
| 476 |
# performance hit for host checks. Use a value of 0 to disable host |
| 477 |
# check caching. |
| 478 |
|
| 479 |
cached_host_check_horizon=15 |
| 480 |
|
| 481 |
|
| 482 |
|
| 483 |
# CACHED SERVICE CHECK HORIZON |
| 484 |
# This option determines the maximum amount of time (in seconds) |
| 485 |
# that the state of a previous service check is considered current. |
| 486 |
# Cached service states (from service checks that were performed more |
| 487 |
# recently that the timeframe specified by this value) can immensely |
| 488 |
# improve performance in regards to predictive dependency checks. |
| 489 |
# Use a value of 0 to disable service check caching. |
| 490 |
|
| 491 |
cached_service_check_horizon=15 |
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
# ENABLE PREDICTIVE HOST DEPENDENCY CHECKS |
| 496 |
# This option determines whether or not Nagios will attempt to execute |
| 497 |
# checks of hosts when it predicts that future dependency logic test |
| 498 |
# may be needed. These predictive checks can help ensure that your |
| 499 |
# host dependency logic works well. |
| 500 |
# Values: |
| 501 |
# 0 = Disable predictive checks |
| 502 |
# 1 = Enable predictive checks (default) |
| 503 |
|
| 504 |
enable_predictive_host_dependency_checks=1 |
| 505 |
|
| 506 |
|
| 507 |
|
| 508 |
# ENABLE PREDICTIVE SERVICE DEPENDENCY CHECKS |
| 509 |
# This option determines whether or not Nagios will attempt to execute |
| 510 |
# checks of service when it predicts that future dependency logic test |
| 511 |
# may be needed. These predictive checks can help ensure that your |
| 512 |
# service dependency logic works well. |
| 513 |
# Values: |
| 514 |
# 0 = Disable predictive checks |
| 515 |
# 1 = Enable predictive checks (default) |
| 516 |
|
| 517 |
enable_predictive_service_dependency_checks=1 |
| 518 |
|
| 519 |
|
| 520 |
|
| 521 |
# SOFT STATE DEPENDENCIES |
| 522 |
# This option determines whether or not Nagios will use soft state |
| 523 |
# information when checking host and service dependencies. Normally |
| 524 |
# Nagios will only use the latest hard host or service state when |
| 525 |
# checking dependencies. If you want it to use the latest state (regardless |
| 526 |
# of whether its a soft or hard state type), enable this option. |
| 527 |
# Values: |
| 528 |
# 0 = Don't use soft state dependencies (default) |
| 529 |
# 1 = Use soft state dependencies |
| 530 |
|
| 531 |
soft_state_dependencies=0 |
| 532 |
|
| 533 |
|
| 534 |
|
| 535 |
# TIME CHANGE ADJUSTMENT THRESHOLDS |
| 536 |
# These options determine when Nagios will react to detected changes |
| 537 |
# in system time (either forward or backwards). |
| 538 |
|
| 539 |
#time_change_threshold=900 |
| 540 |
|
| 541 |
|
| 542 |
|
| 543 |
# AUTO-RESCHEDULING OPTION |
| 544 |
# This option determines whether or not Nagios will attempt to |
| 545 |
# automatically reschedule active host and service checks to |
| 546 |
# "smooth" them out over time. This can help balance the load on |
| 547 |
# the monitoring server. |
| 548 |
# WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE |
| 549 |
# PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY |
| 550 |
|
| 551 |
auto_reschedule_checks=0 |
| 552 |
|
| 553 |
|
| 554 |
|
| 555 |
# AUTO-RESCHEDULING INTERVAL |
| 556 |
# This option determines how often (in seconds) Nagios will |
| 557 |
# attempt to automatically reschedule checks. This option only |
| 558 |
# has an effect if the auto_reschedule_checks option is enabled. |
| 559 |
# Default is 30 seconds. |
| 560 |
# WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE |
| 561 |
# PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY |
| 562 |
|
| 563 |
auto_rescheduling_interval=30 |
| 564 |
|
| 565 |
|
| 566 |
|
| 567 |
# AUTO-RESCHEDULING WINDOW |
| 568 |
# This option determines the "window" of time (in seconds) that |
| 569 |
# Nagios will look at when automatically rescheduling checks. |
| 570 |
# Only host and service checks that occur in the next X seconds |
| 571 |
# (determined by this variable) will be rescheduled. This option |
| 572 |
# only has an effect if the auto_reschedule_checks option is |
| 573 |
# enabled. Default is 180 seconds (3 minutes). |
| 574 |
# WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE |
| 575 |
# PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY |
| 576 |
|
| 577 |
auto_rescheduling_window=180 |
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
# TIMEOUT VALUES |
| 582 |
# These options control how much time Nagios will allow various |
| 583 |
# types of commands to execute before killing them off. Options |
| 584 |
# are available for controlling maximum time allotted for |
| 585 |
# service checks, host checks, event handlers, notifications, the |
| 586 |
# ocsp command, and performance data commands. All values are in |
| 587 |
# seconds. |
| 588 |
|
| 589 |
service_check_timeout=60 |
| 590 |
host_check_timeout=30 |
| 591 |
event_handler_timeout=30 |
| 592 |
notification_timeout=30 |
| 593 |
ocsp_timeout=5 |
| 594 |
ochp_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=@localstatedir@/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 determines 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=0 |
| 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=@localstatedir@/host-perfdata |
| 835 |
#service_perfdata_file=@localstatedir@/service-perfdata |
| 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=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$ |
| 848 |
#service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$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 default 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=0 |
| 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-file |
| 882 |
|
| 883 |
|
| 884 |
|
| 885 |
# HOST AND SERVICE PERFORMANCE DATA PROCESS EMPTY RESULTS |
| 886 |
# These options determine whether 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_user@@localhost |
| 1182 |
admin_pager=page@nagios_user@@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 |
# 4096 = Interprocess communication |
| 1275 |
# 8192 = Scheduling |
| 1276 |
# 16384 = Workers |
| 1277 |
|
| 1278 |
debug_level=0 |
| 1279 |
|
| 1280 |
|
| 1281 |
|
| 1282 |
# DEBUG VERBOSITY |
| 1283 |
# This option determines how verbose the debug log out will be. |
| 1284 |
# Values: 0 = Brief output |
| 1285 |
# 1 = More detailed |
| 1286 |
# 2 = Very detailed |
| 1287 |
|
| 1288 |
debug_verbosity=1 |
| 1289 |
|
| 1290 |
|
| 1291 |
|
| 1292 |
# DEBUG FILE |
| 1293 |
# This option determines where Nagios should write debugging information. |
| 1294 |
|
| 1295 |
debug_file=@localstatedir@/nagios.debug |
| 1296 |
|
| 1297 |
|
| 1298 |
|
| 1299 |
# MAX DEBUG FILE SIZE |
| 1300 |
# This option determines the maximum size (in bytes) of the debug file. If |
| 1301 |
# the file grows larger than this size, it will be renamed with a .old |
| 1302 |
# extension. If a file already exists with a .old extension it will |
| 1303 |
# automatically be deleted. This helps ensure your disk space usage doesn't |
| 1304 |
# get out of control when debugging Nagios. |
| 1305 |
|
| 1306 |
max_debug_file_size=1000000 |
| 1307 |
|
| 1308 |
|
| 1309 |
|
| 1310 |
# Should we allow hostgroups to have no hosts, we default this to off since |
| 1311 |
# that was the old behavior |
| 1312 |
|
| 1313 |
allow_empty_hostgroup_assignment=0 |
| 1314 |
|
| 1315 |
|
| 1316 |
|
| 1317 |
# Normally worker count is dynamically allocated based on 1.5 * number of cpu's |
| 1318 |
# with a minimum of 4 workers. This value will override the defaults |
| 1319 |
|
| 1320 |
#check_workers=3 |
| 1321 |
|
| 1322 |
|
| 1323 |
|
| 1324 |
# DISABLE SERVICE CHECKS WHEN HOST DOWN |
| 1325 |
# This option will disable all service checks if the host is not in an UP state |
| 1326 |
# |
| 1327 |
# While desirable in some environments, enabling this value can distort report |
| 1328 |
# values as the expected quantity of checks will not have been performed |
| 1329 |
|
| 1330 |
#host_down_disable_service_checks=0 |
| 1331 |
|
| 1332 |
|
| 1333 |
|
| 1334 |
# SET SERVICE/HOST STATUS WHEN SERVICE CHECK SKIPPED |
| 1335 |
# These options will allow you to set the status of a service when its |
| 1336 |
# service check is skipped due to one of three reasons: |
| 1337 |
# 1) failed dependency check; 2) parent's status; 3) host not up |
| 1338 |
# Number 3 can only happen if 'host_down_disable_service_checks' above |
| 1339 |
# is set to 1. |
| 1340 |
# Valid values for the service* options are: |
| 1341 |
# -1 Do not change the service status (default - same as before 4.4) |
| 1342 |
# 0 Set the service status to STATE_OK |
| 1343 |
# 1 Set the service status to STATE_WARNING |
| 1344 |
# 2 Set the service status to STATE_CRITICAL |
| 1345 |
# 3 Set the service status to STATE_UNKNOWN |
| 1346 |
# The host_skip_check_dependency_status option will allow you to set the |
| 1347 |
# status of a host when itscheck is skipped due to a failed dependency check. |
| 1348 |
# Valid values for the host_skip_check_dependency_status are: |
| 1349 |
# -1 Do not change the service status (default - same as before 4.4) |
| 1350 |
# 0 Set the host status to STATE_UP |
| 1351 |
# 1 Set the host status to STATE_DOWN |
| 1352 |
# 2 Set the host status to STATE_UNREACHABLE |
| 1353 |
# We may add one or more statuses in the future. |
| 1354 |
|
| 1355 |
#service_skip_check_dependency_status=-1 |
| 1356 |
#service_skip_check_parent_status=-1 |
| 1357 |
#service_skip_check_host_down_status=-1 |
| 1358 |
#host_skip_check_dependency_status=-1 |
| 1359 |
|
| 1360 |
|
| 1361 |
|
| 1362 |
# LOAD CONTROL OPTIONS |
| 1363 |
# To get current defaults based on your system, issue this command to |
| 1364 |
# the query handler: |
| 1365 |
# echo -e '@core loadctl\0' | nc -U /usr/local/nagios/var/rw/nagios.qh |
| 1366 |
# |
| 1367 |
# Please note that used incorrectly these options can induce enormous latency. |
| 1368 |
# |
| 1369 |
# loadctl_options: |
| 1370 |
# jobs_max The maximum amount of jobs to run at one time |
| 1371 |
# jobs_min The minimum amount of jobs to run at one time |
| 1372 |
# jobs_limit The maximum amount of jobs the current load lets us run |
| 1373 |
# backoff_limit The minimum backoff_change |
| 1374 |
# backoff_change # of jobs to remove from jobs_limit when backing off |
| 1375 |
# rampup_limit Minimum rampup_change |
| 1376 |
# rampup_change # of jobs to add to jobs_limit when ramping up |
| 1377 |
|
| 1378 |
#loadctl_options=jobs_max=100;backoff_limit=10;rampup_change=5 |