Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/nagios/files/nagios.cfg

Issue 12375002: Implement more detailed bandwidth monitoring (Closed)
Patch Set: Fixed permissions Created Oct. 4, 2013, 12:47 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « modules/nagios/files/check_bandwidth ('k') | modules/nagios/files/sudoers » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ############################################################################## 1 ##############################################################################
2 # 2 #
3 # NAGIOS.CFG - Sample Main Config File for Nagios 3 # NAGIOS.CFG - Sample Main Config File for Nagios
4 # 4 #
5 # 5 #
6 ############################################################################## 6 ##############################################################################
7 7
8 8
9 # LOG FILE 9 # LOG FILE
10 # This is the main log file where service and host events are logged 10 # This is the main log file where service and host events are logged
11 # for historical purposes. This should be the first option specified 11 # for historical purposes. This should be the first option specified
12 # in the config file!!! 12 # in the config file!!!
13 13
14 log_file=/var/log/nagios3/nagios.log 14 log_file=/var/log/nagios3/nagios.log
15 15
16 # Commands definitions 16 # Commands definitions
17 cfg_file=/etc/nagios3/commands.cfg 17 cfg_file=/etc/nagios3/commands.cfg
18 18
19 # Debian also defaults to using the check commands defined by the debian 19 # Debian also defaults to using the check commands defined by the debian
20 # nagios-plugins package 20 # nagios-plugins package
21 cfg_dir=/etc/nagios-plugins/config 21 cfg_dir=/etc/nagios-plugins/config
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #cfg_dir=/etc/nagios3/servers 54 #cfg_dir=/etc/nagios3/servers
55 #cfg_dir=/etc/nagios3/printers 55 #cfg_dir=/etc/nagios3/printers
56 #cfg_dir=/etc/nagios3/switches 56 #cfg_dir=/etc/nagios3/switches
57 #cfg_dir=/etc/nagios3/routers 57 #cfg_dir=/etc/nagios3/routers
58 58
59 59
60 60
61 61
62 # OBJECT CACHE FILE 62 # OBJECT CACHE FILE
63 # This option determines where object definitions are cached when 63 # This option determines where object definitions are cached when
64 # Nagios starts/restarts. The CGIs read object definitions from 64 # Nagios starts/restarts. The CGIs read object definitions from
65 # this cache file (rather than looking at the object config files 65 # this cache file (rather than looking at the object config files
66 # directly) in order to prevent inconsistencies that can occur 66 # directly) in order to prevent inconsistencies that can occur
67 # when the config files are modified after Nagios starts. 67 # when the config files are modified after Nagios starts.
68 68
69 object_cache_file=/var/cache/nagios3/objects.cache 69 object_cache_file=/var/cache/nagios3/objects.cache
70 70
71 71
72 72
73 # PRE-CACHED OBJECT FILE 73 # PRE-CACHED OBJECT FILE
74 # This options determines the location of the precached object file. 74 # This options determines the location of the precached object file.
75 # If you run Nagios with the -p command line option, it will preprocess 75 # If you run Nagios with the -p command line option, it will preprocess
76 # your object configuration file(s) and write the cached config to this 76 # your object configuration file(s) and write the cached config to this
77 # file. You can then start Nagios with the -u option to have it read 77 # file. You can then start Nagios with the -u option to have it read
78 # object definitions from this precached file, rather than the standard 78 # object definitions from this precached file, rather than the standard
79 # object configuration files (see the cfg_file and cfg_dir options above). 79 # object configuration files (see the cfg_file and cfg_dir options above).
80 # Using a precached object file can speed up the time needed to (re)start 80 # Using a precached object file can speed up the time needed to (re)start
81 # the Nagios process if you've got a large and/or complex configuration. 81 # the Nagios process if you've got a large and/or complex configuration.
82 # Read the documentation section on optimizing Nagios to find our more 82 # Read the documentation section on optimizing Nagios to find our more
83 # about how this feature works. 83 # about how this feature works.
84 84
85 precached_object_file=/var/lib/nagios3/objects.precache 85 precached_object_file=/var/lib/nagios3/objects.precache
86 86
87 87
88 88
89 # RESOURCE FILE 89 # RESOURCE FILE
90 # This is an optional resource file that contains $USERx$ macro 90 # This is an optional resource file that contains $USERx$ macro
(...skipping 13 matching lines...) Expand all
104 # hosts is stored. Its contents are read and processed by the CGIs. 104 # hosts is stored. Its contents are read and processed by the CGIs.
105 # The contents of the status file are deleted every time Nagios 105 # The contents of the status file are deleted every time Nagios
106 # restarts. 106 # restarts.
107 107
108 status_file=/var/cache/nagios3/status.dat 108 status_file=/var/cache/nagios3/status.dat
109 109
110 110
111 111
112 # STATUS FILE UPDATE INTERVAL 112 # STATUS FILE UPDATE INTERVAL
113 # This option determines the frequency (in seconds) that 113 # This option determines the frequency (in seconds) that
114 # Nagios will periodically dump program, host, and 114 # Nagios will periodically dump program, host, and
115 # service status data. 115 # service status data.
116 116
117 status_update_interval=10 117 status_update_interval=10
118 118
119 119
120 120
121 # NAGIOS USER 121 # NAGIOS USER
122 # This determines the effective user that Nagios should run as. 122 # This determines the effective user that Nagios should run as.
123 # You can either supply a username or a UID. 123 # You can either supply a username or a UID.
124 124
125 nagios_user=nagios 125 nagios_user=nagios
126 126
127 127
128 128
129 # NAGIOS GROUP 129 # NAGIOS GROUP
130 # This determines the effective group that Nagios should run as. 130 # This determines the effective group that Nagios should run as.
131 # You can either supply a group name or a GID. 131 # You can either supply a group name or a GID.
132 132
133 nagios_group=nagios 133 nagios_group=nagios
134 134
135 135
136 136
137 # EXTERNAL COMMAND OPTION 137 # EXTERNAL COMMAND OPTION
138 # This option allows you to specify whether or not Nagios should check 138 # This option allows you to specify whether or not Nagios should check
139 # for external commands (in the command file defined below). By default 139 # for external commands (in the command file defined below). By default
140 # Nagios will *not* check for external commands, just to be on the 140 # Nagios will *not* check for external commands, just to be on the
141 # cautious side. If you want to be able to use the CGI command interface 141 # cautious side. If you want to be able to use the CGI command interface
142 # you will have to enable this. 142 # you will have to enable this.
143 # Values: 0 = disable commands, 1 = enable commands 143 # Values: 0 = disable commands, 1 = enable commands
144 144
145 check_external_commands=0 145 check_external_commands=0
146 146
147 147
148 148
149 # EXTERNAL COMMAND CHECK INTERVAL 149 # EXTERNAL COMMAND CHECK INTERVAL
150 # This is the interval at which Nagios should check for external commands. 150 # This is the interval at which Nagios should check for external commands.
151 # This value works of the interval_length you specify later. If you leave 151 # This value works of the interval_length you specify later. If you leave
152 # that at its default value of 60 (seconds), a value of 1 here will cause 152 # that at its default value of 60 (seconds), a value of 1 here will cause
153 # Nagios to check for external commands every minute. If you specify a 153 # Nagios to check for external commands every minute. If you specify a
154 # number followed by an "s" (i.e. 15s), this will be interpreted to mean 154 # number followed by an "s" (i.e. 15s), this will be interpreted to mean
155 # actual seconds rather than a multiple of the interval_length variable. 155 # actual seconds rather than a multiple of the interval_length variable.
156 # Note: In addition to reading the external command file at regularly 156 # Note: In addition to reading the external command file at regularly
157 # scheduled intervals, Nagios will also check for external commands after 157 # scheduled intervals, Nagios will also check for external commands after
158 # event handlers are executed. 158 # event handlers are executed.
159 # NOTE: Setting this value to -1 causes Nagios to check the external 159 # NOTE: Setting this value to -1 causes Nagios to check the external
160 # command file as often as possible. 160 # command file as often as possible.
161 161
162 #command_check_interval=15s 162 #command_check_interval=15s
163 command_check_interval=-1 163 command_check_interval=-1
164 164
165 165
166 166
167 # EXTERNAL COMMAND FILE 167 # EXTERNAL COMMAND FILE
168 # This is the file that Nagios checks for external command requests. 168 # This is the file that Nagios checks for external command requests.
169 # It is also where the command CGI will write commands that are submitted 169 # It is also where the command CGI will write commands that are submitted
170 # by users, so it must be writeable by the user that the web server 170 # by users, so it must be writeable by the user that the web server
171 # is running as (usually 'nobody'). Permissions should be set at the 171 # is running as (usually 'nobody'). Permissions should be set at the
172 # directory level instead of on the file, as the file is deleted every 172 # directory level instead of on the file, as the file is deleted every
173 # time its contents are processed. 173 # time its contents are processed.
174 # Debian Users: In case you didn't read README.Debian yet, _NOW_ is the 174 # Debian Users: In case you didn't read README.Debian yet, _NOW_ is the
175 # time to do it. 175 # time to do it.
176 176
177 command_file=/var/lib/nagios3/rw/nagios.cmd 177 command_file=/var/lib/nagios3/rw/nagios.cmd
178 178
179 179
180 180
181 # EXTERNAL COMMAND BUFFER SLOTS 181 # EXTERNAL COMMAND BUFFER SLOTS
182 # This settings is used to tweak the number of items or "slots" that 182 # This settings is used to tweak the number of items or "slots" that
183 # the Nagios daemon should allocate to the buffer that holds incoming 183 # the Nagios daemon should allocate to the buffer that holds incoming
184 # external commands before they are processed. As external commands 184 # external commands before they are processed. As external commands
185 # are processed by the daemon, they are removed from the buffer. 185 # are processed by the daemon, they are removed from the buffer.
186 186
187 external_command_buffer_slots=4096 187 external_command_buffer_slots=4096
188 188
189 189
190 190
191 # LOCK FILE 191 # LOCK FILE
192 # This is the lockfile that Nagios will use to store its PID number 192 # This is the lockfile that Nagios will use to store its PID number
193 # in when it is running in daemon mode. 193 # in when it is running in daemon mode.
194 194
195 lock_file=/var/run/nagios3/nagios3.pid 195 lock_file=/var/run/nagios3/nagios3.pid
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 # h = Hourly rotation (top of the hour) 258 # h = Hourly rotation (top of the hour)
259 # d = Daily rotation (midnight every day) 259 # d = Daily rotation (midnight every day)
260 # w = Weekly rotation (midnight on Saturday evening) 260 # w = Weekly rotation (midnight on Saturday evening)
261 # m = Monthly rotation (midnight last day of month) 261 # m = Monthly rotation (midnight last day of month)
262 262
263 log_rotation_method=d 263 log_rotation_method=d
264 264
265 265
266 266
267 # LOG ARCHIVE PATH 267 # LOG ARCHIVE PATH
268 # This is the directory where archived (rotated) log files should be 268 # This is the directory where archived (rotated) log files should be
269 # placed (assuming you've chosen to do log rotation). 269 # placed (assuming you've chosen to do log rotation).
270 270
271 log_archive_path=/var/log/nagios3/archives 271 log_archive_path=/var/log/nagios3/archives
272 272
273 273
274 274
275 # LOGGING OPTIONS 275 # LOGGING OPTIONS
276 # If you want messages logged to the syslog facility, as well as the 276 # If you want messages logged to the syslog facility, as well as the
277 # Nagios log file set this option to 1. If not, set it to 0. 277 # Nagios log file set this option to 1. If not, set it to 0.
278 278
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 # MAXIMUM HOST CHECK SPREAD 421 # MAXIMUM HOST CHECK SPREAD
422 # This variable determines the timeframe (in minutes) from the 422 # This variable determines the timeframe (in minutes) from the
423 # program start time that an initial check of all hosts should 423 # program start time that an initial check of all hosts should
424 # be completed. Default is 30 minutes. 424 # be completed. Default is 30 minutes.
425 425
426 max_host_check_spread=30 426 max_host_check_spread=30
427 427
428 428
429 429
430 # MAXIMUM CONCURRENT SERVICE CHECKS 430 # MAXIMUM CONCURRENT SERVICE CHECKS
431 # This option allows you to specify the maximum number of 431 # This option allows you to specify the maximum number of
432 # service checks that can be run in parallel at any given time. 432 # service checks that can be run in parallel at any given time.
433 # Specifying a value of 1 for this variable essentially prevents 433 # Specifying a value of 1 for this variable essentially prevents
434 # any service checks from being parallelized. A value of 0 434 # any service checks from being parallelized. A value of 0
435 # will not restrict the number of concurrent checks that are 435 # will not restrict the number of concurrent checks that are
436 # being executed. 436 # being executed.
437 437
438 max_concurrent_checks=0 438 max_concurrent_checks=0
439 439
440 440
441 441
442 # HOST AND SERVICE CHECK REAPER FREQUENCY 442 # HOST AND SERVICE CHECK REAPER FREQUENCY
443 # This is the frequency (in seconds!) that Nagios will process 443 # This is the frequency (in seconds!) that Nagios will process
444 # the results of host and service checks. 444 # the results of host and service checks.
445 445
446 check_result_reaper_frequency=10 446 check_result_reaper_frequency=10
447 447
448 448
449 449
450 450
451 # MAX CHECK RESULT REAPER TIME 451 # MAX CHECK RESULT REAPER TIME
452 # This is the max amount of time (in seconds) that a single 452 # This is the max amount of time (in seconds) that a single
453 # check result reaper event will be allowed to run before 453 # check result reaper event will be allowed to run before
454 # returning control back to Nagios so it can perform other 454 # returning control back to Nagios so it can perform other
455 # duties. 455 # duties.
456 456
457 max_check_result_reaper_time=30 457 max_check_result_reaper_time=30
458 458
459 459
460 460
461 461
462 # CHECK RESULT PATH 462 # CHECK RESULT PATH
463 # This is directory where Nagios stores the results of host and 463 # This is directory where Nagios stores the results of host and
464 # service checks that have not yet been processed. 464 # service checks that have not yet been processed.
465 # 465 #
466 # Note: Make sure that only one instance of Nagios has access 466 # Note: Make sure that only one instance of Nagios has access
467 # to this directory! 467 # to this directory!
468 468
469 check_result_path=/var/lib/nagios3/spool/checkresults 469 check_result_path=/var/lib/nagios3/spool/checkresults
470 470
471 471
472 472
473 473
474 # MAX CHECK RESULT FILE AGE 474 # MAX CHECK RESULT FILE AGE
475 # This option determines the maximum age (in seconds) which check 475 # This option determines the maximum age (in seconds) which check
476 # result files are considered to be valid. Files older than this 476 # result files are considered to be valid. Files older than this
477 # threshold will be mercilessly deleted without further processing. 477 # threshold will be mercilessly deleted without further processing.
478 478
479 max_check_result_file_age=3600 479 max_check_result_file_age=3600
480 480
481 481
482 482
483 483
484 # CACHED HOST CHECK HORIZON 484 # CACHED HOST CHECK HORIZON
485 # This option determines the maximum amount of time (in seconds) 485 # This option determines the maximum amount of time (in seconds)
486 # that the state of a previous host check is considered current. 486 # that the state of a previous host check is considered current.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 # service dependency logic works well. 528 # service dependency logic works well.
529 # Values: 529 # Values:
530 # 0 = Disable predictive checks 530 # 0 = Disable predictive checks
531 # 1 = Enable predictive checks (default) 531 # 1 = Enable predictive checks (default)
532 532
533 enable_predictive_service_dependency_checks=1 533 enable_predictive_service_dependency_checks=1
534 534
535 535
536 536
537 # SOFT STATE DEPENDENCIES 537 # SOFT STATE DEPENDENCIES
538 # This option determines whether or not Nagios will use soft state 538 # This option determines whether or not Nagios will use soft state
539 # information when checking host and service dependencies. Normally 539 # information when checking host and service dependencies. Normally
540 # Nagios will only use the latest hard host or service state when 540 # Nagios will only use the latest hard host or service state when
541 # checking dependencies. If you want it to use the latest state (regardless 541 # checking dependencies. If you want it to use the latest state (regardless
542 # of whether its a soft or hard state type), enable this option. 542 # of whether its a soft or hard state type), enable this option.
543 # Values: 543 # Values:
544 # 0 = Don't use soft state dependencies (default) 544 # 0 = Don't use soft state dependencies (default)
545 # 1 = Use soft state dependencies 545 # 1 = Use soft state dependencies
546 546
547 soft_state_dependencies=0 547 soft_state_dependencies=0
548 548
549 549
550 550
551 # TIME CHANGE ADJUSTMENT THRESHOLDS 551 # TIME CHANGE ADJUSTMENT THRESHOLDS
552 # These options determine when Nagios will react to detected changes 552 # These options determine when Nagios will react to detected changes
553 # in system time (either forward or backwards). 553 # in system time (either forward or backwards).
554 554
555 #time_change_threshold=900 555 #time_change_threshold=900
556 556
557 557
558 558
559 # AUTO-RESCHEDULING OPTION 559 # AUTO-RESCHEDULING OPTION
560 # This option determines whether or not Nagios will attempt to 560 # This option determines whether or not Nagios will attempt to
561 # automatically reschedule active host and service checks to 561 # automatically reschedule active host and service checks to
562 # "smooth" them out over time. This can help balance the load on 562 # "smooth" them out over time. This can help balance the load on
563 # the monitoring server. 563 # the monitoring server.
564 # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE 564 # WARNING: THIS IS AN EXPERIMENTAL FEATURE - IT CAN DEGRADE
565 # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY 565 # PERFORMANCE, RATHER THAN INCREASE IT, IF USED IMPROPERLY
566 566
567 auto_reschedule_checks=0 567 auto_reschedule_checks=0
568 568
569 569
570 570
571 # AUTO-RESCHEDULING INTERVAL 571 # AUTO-RESCHEDULING INTERVAL
572 # This option determines how often (in seconds) Nagios will 572 # This option determines how often (in seconds) Nagios will
573 # attempt to automatically reschedule checks. This option only 573 # attempt to automatically reschedule checks. This option only
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 notification_timeout=30 616 notification_timeout=30
617 ocsp_timeout=5 617 ocsp_timeout=5
618 perfdata_timeout=5 618 perfdata_timeout=5
619 619
620 620
621 621
622 # RETAIN STATE INFORMATION 622 # RETAIN STATE INFORMATION
623 # This setting determines whether or not Nagios will save state 623 # This setting determines whether or not Nagios will save state
624 # information for services and hosts before it shuts down. Upon 624 # information for services and hosts before it shuts down. Upon
625 # startup Nagios will reload all saved service and host state 625 # startup Nagios will reload all saved service and host state
626 # information before starting to monitor. This is useful for 626 # information before starting to monitor. This is useful for
627 # maintaining long-term data on state statistics, etc, but will 627 # maintaining long-term data on state statistics, etc, but will
628 # slow Nagios down a bit when it (re)starts. Since its only 628 # slow Nagios down a bit when it (re)starts. Since its only
629 # a one-time penalty, I think its well worth the additional 629 # a one-time penalty, I think its well worth the additional
630 # startup delay. 630 # startup delay.
631 631
632 retain_state_information=1 632 retain_state_information=1
633 633
634 634
635 635
636 # STATE RETENTION FILE 636 # STATE RETENTION FILE
637 # This is the file that Nagios should use to store host and 637 # This is the file that Nagios should use to store host and
638 # service state information before it shuts down. The state 638 # service state information before it shuts down. The state
639 # information in this file is also read immediately prior to 639 # information in this file is also read immediately prior to
640 # starting to monitor the network when Nagios is restarted. 640 # starting to monitor the network when Nagios is restarted.
641 # This file is used only if the retain_state_information 641 # This file is used only if the retain_state_information
642 # variable is set to 1. 642 # variable is set to 1.
643 643
644 state_retention_file=/var/lib/nagios3/retention.dat 644 state_retention_file=/var/lib/nagios3/retention.dat
645 645
646 646
647 647
648 # RETENTION DATA UPDATE INTERVAL 648 # RETENTION DATA UPDATE INTERVAL
649 # This setting determines how often (in minutes) that Nagios 649 # This setting determines how often (in minutes) that Nagios
650 # will automatically save retention data during normal operation. 650 # will automatically save retention data during normal operation.
651 # If you set this value to 0, Nagios will not save retention 651 # If you set this value to 0, Nagios will not save retention
652 # data at regular interval, but it will still save retention 652 # data at regular interval, but it will still save retention
653 # data before shutting down or restarting. If you have disabled 653 # data before shutting down or restarting. If you have disabled
654 # state retention, this option has no effect. 654 # state retention, this option has no effect.
655 655
656 retention_update_interval=60 656 retention_update_interval=60
657 657
658 658
659 659
660 # USE RETAINED PROGRAM STATE 660 # USE RETAINED PROGRAM STATE
661 # This setting determines whether or not Nagios will set 661 # This setting determines whether or not Nagios will set
662 # program status variables based on the values saved in the 662 # program status variables based on the values saved in the
663 # retention file. If you want to use retained program status 663 # retention file. If you want to use retained program status
664 # information, set this value to 1. If not, set this value 664 # information, set this value to 1. If not, set this value
665 # to 0. 665 # to 0.
666 666
667 use_retained_program_state=1 667 use_retained_program_state=1
668 668
669 669
670 670
671 # USE RETAINED SCHEDULING INFO 671 # USE RETAINED SCHEDULING INFO
672 # This setting determines whether or not Nagios will retain 672 # This setting determines whether or not Nagios will retain
673 # the scheduling info (next check time) for hosts and services 673 # the scheduling info (next check time) for hosts and services
674 # based on the values saved in the retention file. If you 674 # based on the values saved in the retention file. If you
675 # If you want to use retained scheduling info, set this 675 # If you want to use retained scheduling info, set this
676 # value to 1. If not, set this value to 0. 676 # value to 1. If not, set this value to 0.
677 677
678 use_retained_scheduling_info=1 678 use_retained_scheduling_info=1
679 679
680 680
681 681
682 # RETAINED ATTRIBUTE MASKS (ADVANCED FEATURE) 682 # RETAINED ATTRIBUTE MASKS (ADVANCED FEATURE)
683 # The following variables are used to specify specific host and 683 # The following variables are used to specify specific host and
684 # service attributes that should *not* be retained by Nagios during 684 # service attributes that should *not* be retained by Nagios during
685 # program restarts. 685 # program restarts.
686 # 686 #
687 # The values of the masks are bitwise ANDs of values specified 687 # The values of the masks are bitwise ANDs of values specified
688 # by the "MODATTR_" definitions found in include/common.h. 688 # by the "MODATTR_" definitions found in include/common.h.
689 # For example, if you do not want the current enabled/disabled state 689 # For example, if you do not want the current enabled/disabled state
690 # of flap detection and event handlers for hosts to be retained, you 690 # of flap detection and event handlers for hosts to be retained, you
691 # would use a value of 24 for the host attribute mask... 691 # would use a value of 24 for the host attribute mask...
692 # MODATTR_EVENT_HANDLER_ENABLED (8) + MODATTR_FLAP_DETECTION_ENABLED (16) = 24 692 # MODATTR_EVENT_HANDLER_ENABLED (8) + MODATTR_FLAP_DETECTION_ENABLED (16) = 24
693 693
694 # This mask determines what host attributes are not retained 694 # This mask determines what host attributes are not retained
695 retained_host_attribute_mask=0 695 retained_host_attribute_mask=0
696 696
697 # This mask determines what service attributes are not retained 697 # This mask determines what service attributes are not retained
698 retained_service_attribute_mask=0 698 retained_service_attribute_mask=0
(...skipping 13 matching lines...) Expand all
712 retained_contact_service_attribute_mask=0 712 retained_contact_service_attribute_mask=0
713 713
714 714
715 715
716 # INTERVAL LENGTH 716 # INTERVAL LENGTH
717 # This is the seconds per unit interval as used in the 717 # This is the seconds per unit interval as used in the
718 # host/contact/service configuration files. Setting this to 60 means 718 # host/contact/service configuration files. Setting this to 60 means
719 # that each interval is one minute long (60 seconds). Other settings 719 # that each interval is one minute long (60 seconds). Other settings
720 # have not been tested much, so your mileage is likely to vary... 720 # have not been tested much, so your mileage is likely to vary...
721 721
722 interval_length=60 722 interval_length=57
723 723
724 724
725 725
726 # CHECK FOR UPDATES 726 # CHECK FOR UPDATES
727 # This option determines whether Nagios will automatically check to 727 # This option determines whether Nagios will automatically check to
728 # see if new updates (releases) are available. It is recommend that you 728 # see if new updates (releases) are available. It is recommend that you
729 # enable this option to ensure that you stay on top of the latest critical 729 # enable this option to ensure that you stay on top of the latest critical
730 # patches to Nagios. Nagios is critical to you - make sure you keep it in 730 # patches to Nagios. Nagios is critical to you - make sure you keep it in
731 # good shape. Nagios will check once a day for new updates. Data collected 731 # good shape. Nagios will check once a day for new updates. Data collected
732 # by Nagios Enterprises from the update check is processed in accordance 732 # by Nagios Enterprises from the update check is processed in accordance
733 # with our privacy policy - see http://api.nagios.org for details. 733 # with our privacy policy - see http://api.nagios.org for details.
734 734
735 check_for_updates=1 735 check_for_updates=1
736 736
737 737
738 738
739 # BARE UPDATE CHECK 739 # BARE UPDATE CHECK
740 # This option deterines what data Nagios will send to api.nagios.org when 740 # This option deterines what data Nagios will send to api.nagios.org when
741 # it checks for updates. By default, Nagios will send information on the 741 # it checks for updates. By default, Nagios will send information on the
742 # current version of Nagios you have installed, as well as an indicator as 742 # current version of Nagios you have installed, as well as an indicator as
743 # to whether this was a new installation or not. Nagios Enterprises uses 743 # to whether this was a new installation or not. Nagios Enterprises uses
744 # this data to determine the number of users running specific version of 744 # this data to determine the number of users running specific version of
745 # Nagios. Enable this option if you do not want this information to be sent. 745 # Nagios. Enable this option if you do not want this information to be sent.
746 746
747 bare_update_check=0 747 bare_update_check=0
748 748
749 749
750 750
751 # AGGRESSIVE HOST CHECKING OPTION 751 # AGGRESSIVE HOST CHECKING OPTION
752 # If you don't want to turn on aggressive host checking features, set 752 # If you don't want to turn on aggressive host checking features, set
753 # this value to 0 (the default). Otherwise set this value to 1 to 753 # this value to 0 (the default). Otherwise set this value to 1 to
754 # enable the aggressive check option. Read the docs for more info 754 # enable the aggressive check option. Read the docs for more info
755 # on what aggressive host check is or check out the source code in 755 # on what aggressive host check is or check out the source code in
756 # base/checks.c 756 # base/checks.c
757 757
758 use_aggressive_host_checking=0 758 use_aggressive_host_checking=0
759 759
760 760
761 761
762 # SERVICE CHECK EXECUTION OPTION 762 # SERVICE CHECK EXECUTION OPTION
763 # This determines whether or not Nagios will actively execute 763 # This determines whether or not Nagios will actively execute
764 # service checks when it initially starts. If this option is 764 # service checks when it initially starts. If this option is
765 # disabled, checks are not actively made, but Nagios can still 765 # disabled, checks are not actively made, but Nagios can still
766 # receive and process passive check results that come in. Unless 766 # receive and process passive check results that come in. Unless
767 # you're implementing redundant hosts or have a special need for 767 # you're implementing redundant hosts or have a special need for
768 # disabling the execution of service checks, leave this enabled! 768 # disabling the execution of service checks, leave this enabled!
769 # Values: 1 = enable checks, 0 = disable checks 769 # Values: 1 = enable checks, 0 = disable checks
770 770
771 execute_service_checks=1 771 execute_service_checks=1
772 772
773 773
774 774
775 # PASSIVE SERVICE CHECK ACCEPTANCE OPTION 775 # PASSIVE SERVICE CHECK ACCEPTANCE OPTION
776 # This determines whether or not Nagios will accept passive 776 # This determines whether or not Nagios will accept passive
777 # service checks results when it initially (re)starts. 777 # service checks results when it initially (re)starts.
778 # Values: 1 = accept passive checks, 0 = reject passive checks 778 # Values: 1 = accept passive checks, 0 = reject passive checks
779 779
780 accept_passive_service_checks=1 780 accept_passive_service_checks=1
781 781
782 782
783 783
784 # HOST CHECK EXECUTION OPTION 784 # HOST CHECK EXECUTION OPTION
785 # This determines whether or not Nagios will actively execute 785 # This determines whether or not Nagios will actively execute
786 # host checks when it initially starts. If this option is 786 # host checks when it initially starts. If this option is
787 # disabled, checks are not actively made, but Nagios can still 787 # disabled, checks are not actively made, but Nagios can still
788 # receive and process passive check results that come in. Unless 788 # receive and process passive check results that come in. Unless
789 # you're implementing redundant hosts or have a special need for 789 # you're implementing redundant hosts or have a special need for
790 # disabling the execution of host checks, leave this enabled! 790 # disabling the execution of host checks, leave this enabled!
791 # Values: 1 = enable checks, 0 = disable checks 791 # Values: 1 = enable checks, 0 = disable checks
792 792
793 execute_host_checks=1 793 execute_host_checks=1
794 794
795 795
796 796
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 # Values: 1 = process performance data, 0 = do not process performance data 833 # Values: 1 = process performance data, 0 = do not process performance data
834 834
835 process_performance_data=1 835 process_performance_data=1
836 836
837 837
838 838
839 # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS 839 # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS
840 # These commands are run after every host and service check is 840 # These commands are run after every host and service check is
841 # performed. These commands are executed only if the 841 # performed. These commands are executed only if the
842 # enable_performance_data option (above) is set to 1. The command 842 # enable_performance_data option (above) is set to 1. The command
843 # argument is the short name of a command definition that you 843 # argument is the short name of a command definition that you
844 # define in your host configuration file. Read the HTML docs for 844 # define in your host configuration file. Read the HTML docs for
845 # more information on performance data. 845 # more information on performance data.
846 846
847 host_perfdata_command=process-host-perfdata 847 host_perfdata_command=process-host-perfdata
848 service_perfdata_command=process-service-perfdata 848 service_perfdata_command=process-service-perfdata
849 849
850 850
851 851
852 # HOST AND SERVICE PERFORMANCE DATA FILES 852 # HOST AND SERVICE PERFORMANCE DATA FILES
853 # These files are used to store host and service performance data. 853 # These files are used to store host and service performance data.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 # implementing distributed monitoring. 913 # implementing distributed monitoring.
914 # Values: 1 = obsess over services, 0 = do not obsess (default) 914 # Values: 1 = obsess over services, 0 = do not obsess (default)
915 915
916 obsess_over_services=0 916 obsess_over_services=0
917 917
918 918
919 919
920 # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND 920 # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND
921 # This is the command that is run for every service check that is 921 # This is the command that is run for every service check that is
922 # processed by Nagios. This command is executed only if the 922 # processed by Nagios. This command is executed only if the
923 # obsess_over_services option (above) is set to 1. The command 923 # obsess_over_services option (above) is set to 1. The command
924 # argument is the short name of a command definition that you 924 # argument is the short name of a command definition that you
925 # define in your host configuration file. Read the HTML docs for 925 # define in your host configuration file. Read the HTML docs for
926 # more information on implementing distributed monitoring. 926 # more information on implementing distributed monitoring.
927 927
928 #ocsp_command=somecommand 928 #ocsp_command=somecommand
929 929
930 930
931 931
932 # OBSESS OVER HOST CHECKS OPTION 932 # OBSESS OVER HOST CHECKS OPTION
933 # This determines whether or not Nagios will obsess over host 933 # This determines whether or not Nagios will obsess over host
934 # checks and run the ochp_command defined below. Unless you're 934 # checks and run the ochp_command defined below. Unless you're
935 # planning on implementing distributed monitoring, do not enable 935 # planning on implementing distributed monitoring, do not enable
936 # this option. Read the HTML docs for more information on 936 # this option. Read the HTML docs for more information on
937 # implementing distributed monitoring. 937 # implementing distributed monitoring.
938 # Values: 1 = obsess over hosts, 0 = do not obsess (default) 938 # Values: 1 = obsess over hosts, 0 = do not obsess (default)
939 939
940 obsess_over_hosts=0 940 obsess_over_hosts=0
941 941
942 942
943 943
944 # OBSESSIVE COMPULSIVE HOST PROCESSOR COMMAND 944 # OBSESSIVE COMPULSIVE HOST PROCESSOR COMMAND
945 # This is the command that is run for every host check that is 945 # This is the command that is run for every host check that is
946 # processed by Nagios. This command is executed only if the 946 # processed by Nagios. This command is executed only if the
947 # obsess_over_hosts option (above) is set to 1. The command 947 # obsess_over_hosts option (above) is set to 1. The command
948 # argument is the short name of a command definition that you 948 # argument is the short name of a command definition that you
949 # define in your host configuration file. Read the HTML docs for 949 # define in your host configuration file. Read the HTML docs for
950 # more information on implementing distributed monitoring. 950 # more information on implementing distributed monitoring.
951 951
952 #ochp_command=somecommand 952 #ochp_command=somecommand
953 953
954 954
955 955
956 # TRANSLATE PASSIVE HOST CHECKS OPTION 956 # TRANSLATE PASSIVE HOST CHECKS OPTION
957 # This determines whether or not Nagios will translate 957 # This determines whether or not Nagios will translate
(...skipping 18 matching lines...) Expand all
976 # checks as being HARD or SOFT. By default, a passive host check 976 # checks as being HARD or SOFT. By default, a passive host check
977 # result will put a host into a HARD state type. This can be changed 977 # result will put a host into a HARD state type. This can be changed
978 # by enabling this option. 978 # by enabling this option.
979 # Values: 0 = passive checks are HARD, 1 = passive checks are SOFT 979 # Values: 0 = passive checks are HARD, 1 = passive checks are SOFT
980 980
981 passive_host_checks_are_soft=0 981 passive_host_checks_are_soft=0
982 982
983 983
984 984
985 # ORPHANED HOST/SERVICE CHECK OPTIONS 985 # ORPHANED HOST/SERVICE CHECK OPTIONS
986 # These options determine whether or not Nagios will periodically 986 # These options determine whether or not Nagios will periodically
987 # check for orphaned host service checks. Since service checks are 987 # check for orphaned host service checks. Since service checks are
988 # not rescheduled until the results of their previous execution 988 # not rescheduled until the results of their previous execution
989 # instance are processed, there exists a possibility that some 989 # instance are processed, there exists a possibility that some
990 # checks may never get rescheduled. A similar situation exists for 990 # checks may never get rescheduled. A similar situation exists for
991 # host checks, although the exact scheduling details differ a bit 991 # host checks, although the exact scheduling details differ a bit
992 # from service checks. Orphaned checks seem to be a rare 992 # from service checks. Orphaned checks seem to be a rare
993 # problem and should not happen under normal circumstances. 993 # problem and should not happen under normal circumstances.
994 # If you have problems with service checks never getting 994 # If you have problems with service checks never getting
995 # rescheduled, make sure you have orphaned service checks enabled. 995 # rescheduled, make sure you have orphaned service checks enabled.
996 # Values: 1 = enable checks, 0 = disable checks 996 # Values: 1 = enable checks, 0 = disable checks
997 997
998 check_for_orphaned_services=1 998 check_for_orphaned_services=1
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 # will add to any host and service freshness thresholds that 1046 # will add to any host and service freshness thresholds that
1047 # it calculates (those not explicitly specified by the user). 1047 # it calculates (those not explicitly specified by the user).
1048 1048
1049 additional_freshness_latency=15 1049 additional_freshness_latency=15
1050 1050
1051 1051
1052 1052
1053 1053
1054 # FLAP DETECTION OPTION 1054 # FLAP DETECTION OPTION
1055 # This option determines whether or not Nagios will try 1055 # This option determines whether or not Nagios will try
1056 # and detect hosts and services that are "flapping". 1056 # and detect hosts and services that are "flapping".
1057 # Flapping occurs when a host or service changes between 1057 # Flapping occurs when a host or service changes between
1058 # states too frequently. When Nagios detects that a 1058 # states too frequently. When Nagios detects that a
1059 # host or service is flapping, it will temporarily suppress 1059 # host or service is flapping, it will temporarily suppress
1060 # notifications for that host/service until it stops 1060 # notifications for that host/service until it stops
1061 # flapping. Flap detection is very experimental, so read 1061 # flapping. Flap detection is very experimental, so read
1062 # the HTML documentation before enabling this feature! 1062 # the HTML documentation before enabling this feature!
1063 # Values: 1 = enable flap detection 1063 # Values: 1 = enable flap detection
1064 # 0 = disable flap detection (default) 1064 # 0 = disable flap detection (default)
1065 1065
1066 enable_flap_detection=1 1066 enable_flap_detection=1
1067 1067
1068 1068
(...skipping 23 matching lines...) Expand all
1092 1092
1093 1093
1094 1094
1095 1095
1096 # TIMEZONE OFFSET 1096 # TIMEZONE OFFSET
1097 # This option is used to override the default timezone that this 1097 # This option is used to override the default timezone that this
1098 # instance of Nagios runs in. If not specified, Nagios will use 1098 # instance of Nagios runs in. If not specified, Nagios will use
1099 # the system configured timezone. 1099 # the system configured timezone.
1100 # 1100 #
1101 # NOTE: In order to display the correct timezone in the CGIs, you 1101 # NOTE: In order to display the correct timezone in the CGIs, you
1102 # will also need to alter the Apache directives for the CGI path 1102 # will also need to alter the Apache directives for the CGI path
1103 # to include your timezone. Example: 1103 # to include your timezone. Example:
1104 # 1104 #
1105 # <Directory "/usr/local/nagios/sbin/"> 1105 # <Directory "/usr/local/nagios/sbin/">
1106 # SetEnv TZ "Australia/Brisbane" 1106 # SetEnv TZ "Australia/Brisbane"
1107 # ... 1107 # ...
1108 # </Directory> 1108 # </Directory>
1109 1109
1110 #use_timezone=US/Mountain 1110 #use_timezone=US/Mountain
1111 #use_timezone=Australia/Brisbane 1111 #use_timezone=Australia/Brisbane
1112 1112
(...skipping 16 matching lines...) Expand all
1129 # Values: 0 = disable interpreter, 1 = enable interpreter 1129 # Values: 0 = disable interpreter, 1 = enable interpreter
1130 1130
1131 enable_embedded_perl=1 1131 enable_embedded_perl=1
1132 1132
1133 1133
1134 1134
1135 # EMBEDDED PERL USAGE OPTION 1135 # EMBEDDED PERL USAGE OPTION
1136 # This option determines whether or not Nagios will process Perl plugins 1136 # This option determines whether or not Nagios will process Perl plugins
1137 # and scripts with the embedded Perl interpreter if the plugins/scripts 1137 # and scripts with the embedded Perl interpreter if the plugins/scripts
1138 # do not explicitly indicate whether or not it is okay to do so. Read 1138 # do not explicitly indicate whether or not it is okay to do so. Read
1139 # the HTML documentation on the embedded Perl interpreter for more 1139 # the HTML documentation on the embedded Perl interpreter for more
1140 # information on how this option works. 1140 # information on how this option works.
1141 1141
1142 use_embedded_perl_implicitly=1 1142 use_embedded_perl_implicitly=1
1143 1143
1144 1144
1145 1145
1146 # ILLEGAL OBJECT NAME CHARACTERS 1146 # ILLEGAL OBJECT NAME CHARACTERS
1147 # This option allows you to specify illegal characters that cannot 1147 # This option allows you to specify illegal characters that cannot
1148 # be used in host names, service descriptions, or names of other 1148 # be used in host names, service descriptions, or names of other
1149 # object types. 1149 # object types.
(...skipping 26 matching lines...) Expand all
1176 # takes place in the object config files. Regular expression 1176 # takes place in the object config files. Regular expression
1177 # matching is used to match host, hostgroup, service, and service 1177 # matching is used to match host, hostgroup, service, and service
1178 # group names/descriptions in some fields of various object types. 1178 # group names/descriptions in some fields of various object types.
1179 # Values: 1 = enable regexp matching, 0 = disable regexp matching 1179 # Values: 1 = enable regexp matching, 0 = disable regexp matching
1180 1180
1181 use_regexp_matching=0 1181 use_regexp_matching=0
1182 1182
1183 1183
1184 1184
1185 # "TRUE" REGULAR EXPRESSION MATCHING 1185 # "TRUE" REGULAR EXPRESSION MATCHING
1186 # This option controls whether or not "true" regular expression 1186 # This option controls whether or not "true" regular expression
1187 # matching takes place in the object config files. This option 1187 # matching takes place in the object config files. This option
1188 # only has an effect if regular expression matching is enabled 1188 # only has an effect if regular expression matching is enabled
1189 # (see above). If this option is DISABLED, regular expression 1189 # (see above). If this option is DISABLED, regular expression
1190 # matching only occurs if a string contains wildcard characters 1190 # matching only occurs if a string contains wildcard characters
1191 # (* and ?). If the option is ENABLED, regexp matching occurs 1191 # (* and ?). If the option is ENABLED, regexp matching occurs
1192 # all the time (which can be annoying). 1192 # all the time (which can be annoying).
1193 # Values: 1 = enable true matching, 0 = disable true matching 1193 # Values: 1 = enable true matching, 0 = disable true matching
1194 1194
1195 use_true_regexp_matching=0 1195 use_true_regexp_matching=0
1196 1196
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 # 0 - Disable tweaks (default) 1229 # 0 - Disable tweaks (default)
1230 1230
1231 use_large_installation_tweaks=0 1231 use_large_installation_tweaks=0
1232 1232
1233 1233
1234 1234
1235 # ENABLE ENVIRONMENT MACROS 1235 # ENABLE ENVIRONMENT MACROS
1236 # This option determines whether or not Nagios will make all standard 1236 # This option determines whether or not Nagios will make all standard
1237 # macros available as environment variables when host/service checks 1237 # macros available as environment variables when host/service checks
1238 # and system commands (event handlers, notifications, etc.) are 1238 # and system commands (event handlers, notifications, etc.) are
1239 # executed. Enabling this option can cause performance issues in 1239 # executed. Enabling this option can cause performance issues in
1240 # large installations, as it will consume a bit more memory and (more 1240 # large installations, as it will consume a bit more memory and (more
1241 # importantly) consume more CPU. 1241 # importantly) consume more CPU.
1242 # Values: 1 - Enable environment variable macros (default) 1242 # Values: 1 - Enable environment variable macros (default)
1243 # 0 - Disable environment variable macros 1243 # 0 - Disable environment variable macros
1244 1244
1245 enable_environment_macros=1 1245 enable_environment_macros=1
1246 1246
1247 1247
1248 1248
1249 # CHILD PROCESS MEMORY OPTION 1249 # CHILD PROCESS MEMORY OPTION
(...skipping 20 matching lines...) Expand all
1270 # 0 - Child processes fork() just once 1270 # 0 - Child processes fork() just once
1271 1271
1272 #child_processes_fork_twice=1 1272 #child_processes_fork_twice=1
1273 1273
1274 1274
1275 1275
1276 # DEBUG LEVEL 1276 # DEBUG LEVEL
1277 # This option determines how much (if any) debugging information will 1277 # This option determines how much (if any) debugging information will
1278 # be written to the debug file. OR values together to log multiple 1278 # be written to the debug file. OR values together to log multiple
1279 # types of information. 1279 # types of information.
1280 # Values: 1280 # Values:
1281 # -1 = Everything 1281 # -1 = Everything
1282 # 0 = Nothing 1282 # 0 = Nothing
1283 # 1 = Functions 1283 # 1 = Functions
1284 # 2 = Configuration 1284 # 2 = Configuration
1285 # 4 = Process information 1285 # 4 = Process information
1286 # 8 = Scheduled events 1286 # 8 = Scheduled events
1287 # 16 = Host/service checks 1287 # 16 = Host/service checks
1288 # 32 = Notifications 1288 # 32 = Notifications
1289 # 64 = Event broker 1289 # 64 = Event broker
1290 # 128 = External commands 1290 # 128 = External commands
(...skipping 26 matching lines...) Expand all
1317 # MAX DEBUG FILE SIZE 1317 # MAX DEBUG FILE SIZE
1318 # This option determines the maximum size (in bytes) of the debug file. If 1318 # This option determines the maximum size (in bytes) of the debug file. If
1319 # the file grows larger than this size, it will be renamed with a .old 1319 # the file grows larger than this size, it will be renamed with a .old
1320 # extension. If a file already exists with a .old extension it will 1320 # extension. If a file already exists with a .old extension it will
1321 # automatically be deleted. This helps ensure your disk space usage doesn't 1321 # automatically be deleted. This helps ensure your disk space usage doesn't
1322 # get out of control when debugging Nagios. 1322 # get out of control when debugging Nagios.
1323 1323
1324 max_debug_file_size=1000000 1324 max_debug_file_size=1000000
1325 1325
1326 1326
OLDNEW
« no previous file with comments | « modules/nagios/files/check_bandwidth ('k') | modules/nagios/files/sudoers » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld