Warning, /frameworks/syntax-highlighting/autotests/input/nagios.cfg is written in an unsupported language. File is not indexed.

0001 ##############################################################################
0002 #
0003 # NAGIOS.CFG - Sample Main Config File for Nagios @VERSION@
0004 #
0005 # Read the documentation for more information on this configuration
0006 # file.  I've provided some comments here, but things may not be so
0007 # clear without further explanation.
0008 #
0009 #
0010 ##############################################################################
0011 
0012 
0013 # LOG FILE
0014 # This is the main log file where service and host events are logged
0015 # for historical purposes.  This should be the first option specified
0016 # in the config file!!!
0017 
0018 log_file=@localstatedir@/nagios.log
0019 
0020 
0021 
0022 # OBJECT CONFIGURATION FILE(S)
0023 # These are the object configuration files in which you define hosts,
0024 # host groups, contacts, contact groups, services, etc.
0025 # You can split your object definitions across several config files
0026 # if you wish (as shown below), or keep them all in a single config file.
0027 
0028 # You can specify individual object config files as shown below:
0029 cfg_file=@sysconfdir@/objects/commands.cfg
0030 cfg_file=@sysconfdir@/objects/contacts.cfg
0031 cfg_file=@sysconfdir@/objects/timeperiods.cfg
0032 cfg_file=@sysconfdir@/objects/templates.cfg
0033 
0034 # Definitions for monitoring the local (Linux) host
0035 cfg_file=@sysconfdir@/objects/localhost.cfg
0036 
0037 # Definitions for monitoring a Windows machine
0038 #cfg_file=@sysconfdir@/objects/windows.cfg
0039 
0040 # Definitions for monitoring a router/switch
0041 #cfg_file=@sysconfdir@/objects/switch.cfg
0042 
0043 # Definitions for monitoring a network printer
0044 #cfg_file=@sysconfdir@/objects/printer.cfg
0045 
0046 
0047 # You can also tell Nagios to process all config files (with a .cfg
0048 # extension) in a particular directory by using the cfg_dir
0049 # directive as shown below:
0050 
0051 #cfg_dir=@sysconfdir@/servers
0052 #cfg_dir=@sysconfdir@/printers
0053 #cfg_dir=@sysconfdir@/switches
0054 #cfg_dir=@sysconfdir@/routers
0055 
0056 
0057 
0058 
0059 # OBJECT CACHE FILE
0060 # This option determines where object definitions are cached when
0061 # Nagios starts/restarts.  The CGIs read object definitions from
0062 # this cache file (rather than looking at the object config files
0063 # directly) in order to prevent inconsistencies that can occur
0064 # when the config files are modified after Nagios starts.
0065 
0066 object_cache_file=@localstatedir@/objects.cache
0067 
0068 
0069 
0070 # PRE-CACHED OBJECT FILE
0071 # This options determines the location of the precached object file.
0072 # If you run Nagios with the -p command line option, it will preprocess
0073 # your object configuration file(s) and write the cached config to this
0074 # file.  You can then start Nagios with the -u option to have it read
0075 # object definitions from this precached file, rather than the standard
0076 # object configuration files (see the cfg_file and cfg_dir options above).
0077 # Using a precached object file can speed up the time needed to (re)start
0078 # the Nagios process if you've got a large and/or complex configuration.
0079 # Read the documentation section on optimizing Nagios to find our more
0080 # about how this feature works.
0081 
0082 precached_object_file=@localstatedir@/objects.precache
0083 
0084 
0085 
0086 # RESOURCE FILE
0087 # This is an optional resource file that contains $USERx$ macro
0088 # definitions. Multiple resource files can be specified by using
0089 # multiple resource_file definitions.  The CGIs will not attempt to
0090 # read the contents of resource files, so information that is
0091 # considered to be sensitive (usernames, passwords, etc) can be
0092 # defined as macros in this file and restrictive permissions (600)
0093 # can be placed on this file.
0094 
0095 resource_file=@sysconfdir@/resource.cfg
0096 
0097 
0098 
0099 # STATUS FILE
0100 # This is where the current status of all monitored services and
0101 # hosts is stored.  Its contents are read and processed by the CGIs.
0102 # The contents of the status file are deleted every time Nagios
0103 #  restarts.
0104 
0105 status_file=@localstatedir@/status.dat
0106 
0107 
0108 
0109 # STATUS FILE UPDATE INTERVAL
0110 # This option determines the frequency (in seconds) that
0111 # Nagios will periodically dump program, host, and
0112 # service status data.
0113 
0114 status_update_interval=10
0115 
0116 
0117 
0118 # NAGIOS USER
0119 # This determines the effective user that Nagios should run as.
0120 # You can either supply a username or a UID.
0121 
0122 nagios_user=@nagios_user@
0123 
0124 
0125 
0126 # NAGIOS GROUP
0127 # This determines the effective group that Nagios should run as.
0128 # You can either supply a group name or a GID.
0129 
0130 nagios_group=@nagios_grp@
0131 
0132 
0133 
0134 # EXTERNAL COMMAND OPTION
0135 # This option allows you to specify whether or not Nagios should check
0136 # for external commands (in the command file defined below).
0137 # By default Nagios will check for external commands.
0138 # If you want to be able to use the CGI command interface
0139 # you will have to enable this.
0140 # Values: 0 = disable commands, 1 = enable commands
0141 
0142 check_external_commands=1
0143 
0144 
0145 
0146 # EXTERNAL COMMAND FILE
0147 # This is the file that Nagios checks for external command requests.
0148 # It is also where the command CGI will write commands that are submitted
0149 # by users, so it must be writeable by the user that the web server
0150 # is running as (usually 'nobody').  Permissions should be set at the
0151 # directory level instead of on the file, as the file is deleted every
0152 # time its contents are processed.
0153 
0154 command_file=@localstatedir@/rw/nagios.cmd
0155 
0156 
0157 
0158 # QUERY HANDLER INTERFACE
0159 # This is the socket that is created for the Query Handler interface
0160 
0161 #query_socket=@localstatedir@/rw/nagios.qh
0162 
0163 
0164 
0165 # LOCK FILE
0166 # This is the lockfile that Nagios will use to store its PID number
0167 # in when it is running in daemon mode.
0168 
0169 lock_file=@subsyslockfile@
0170 
0171 
0172 
0173 # TEMP FILE
0174 # This is a temporary file that is used as scratch space when Nagios
0175 # updates the status log, cleans the comment file, etc.  This file
0176 # is created, used, and deleted throughout the time that Nagios is
0177 # running.
0178 
0179 temp_file=@localstatedir@/nagios.tmp
0180 
0181 
0182 
0183 # TEMP PATH
0184 # This is path where Nagios can create temp files for service and
0185 # host check results, etc.
0186 
0187 temp_path=@TMPDIR@
0188 
0189 
0190 
0191 # EVENT BROKER OPTIONS
0192 # Controls what (if any) data gets sent to the event broker.
0193 # Values:  0      = Broker nothing
0194 #         -1      = Broker everything
0195 #         <other> = See documentation
0196 
0197 event_broker_options=-1
0198 
0199 
0200 
0201 # EVENT BROKER MODULE(S)
0202 # This directive is used to specify an event broker module that should
0203 # by loaded by Nagios at startup.  Use multiple directives if you want
0204 # to load more than one module.  Arguments that should be passed to
0205 # the module at startup are separated from the module path by a space.
0206 #
0207 #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0208 # WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING !!! WARNING
0209 #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0210 #
0211 # Do NOT overwrite modules while they are being used by Nagios or Nagios
0212 # will crash in a fiery display of SEGFAULT glory.  This is a bug/limitation
0213 # either in dlopen(), the kernel, and/or the filesystem.  And maybe Nagios...
0214 #
0215 # The correct/safe way of updating a module is by using one of these methods:
0216 #    1. Shutdown Nagios, replace the module file, restart Nagios
0217 #    2. Delete the original module file, move the new module file into place,
0218 #       restart Nagios
0219 #
0220 # Example:
0221 #
0222 #   broker_module=<modulepath> [moduleargs]
0223 
0224 #broker_module=/somewhere/module1.o
0225 #broker_module=/somewhere/module2.o arg1 arg2=3 debug=0
0226 
0227 
0228 
0229 # LOG ROTATION METHOD
0230 # This is the log rotation method that Nagios should use to rotate
0231 # the main log file. Values are as follows..
0232 #       n       = None - don't rotate the log
0233 #       h       = Hourly rotation (top of the hour)
0234 #       d       = Daily rotation (midnight every day)
0235 #       w       = Weekly rotation (midnight on Saturday evening)
0236 #       m       = Monthly rotation (midnight last day of month)
0237 
0238 log_rotation_method=d
0239 
0240 
0241 
0242 # LOG ARCHIVE PATH
0243 # This is the directory where archived (rotated) log files should be
0244 # placed (assuming you've chosen to do log rotation).
0245 
0246 log_archive_path=@localstatedir@/archives
0247 
0248 
0249 
0250 # LOGGING OPTIONS
0251 # If you want messages logged to the syslog facility, as well as the
0252 # Nagios log file set this option to 1.  If not, set it to 0.
0253 
0254 use_syslog=1
0255 
0256 
0257 
0258 # NOTIFICATION LOGGING OPTION
0259 # If you don't want notifications to be logged, set this value to 0.
0260 # If notifications should be logged, set the value to 1.
0261 
0262 log_notifications=1
0263 
0264 
0265 
0266 # SERVICE RETRY LOGGING OPTION
0267 # If you don't want service check retries to be logged, set this value
0268 # to 0.  If retries should be logged, set the value to 1.
0269 
0270 log_service_retries=1
0271 
0272 
0273 
0274 # HOST RETRY LOGGING OPTION
0275 # If you don't want host check retries to be logged, set this value to
0276 # 0.  If retries should be logged, set the value to 1.
0277 
0278 log_host_retries=1
0279 
0280 
0281 
0282 # EVENT HANDLER LOGGING OPTION
0283 # If you don't want host and service event handlers to be logged, set
0284 # this value to 0.  If event handlers should be logged, set the value
0285 # to 1.
0286 
0287 log_event_handlers=1
0288 
0289 
0290 
0291 # INITIAL STATES LOGGING OPTION
0292 # If you want Nagios to log all initial host and service states to
0293 # the main log file (the first time the service or host is checked)
0294 # you can enable this option by setting this value to 1.  If you
0295 # are not using an external application that does long term state
0296 # statistics reporting, you do not need to enable this option.  In
0297 # this case, set the value to 0.
0298 
0299 log_initial_states=0
0300 
0301 
0302 
0303 # CURRENT STATES LOGGING OPTION
0304 # If you don't want Nagios to log all current host and service states
0305 # after log has been rotated to the main log file, you can disable this
0306 # option by setting this value to 0. Default value is 1.
0307 
0308 log_current_states=1
0309 
0310 
0311 
0312 # EXTERNAL COMMANDS LOGGING OPTION
0313 # If you don't want Nagios to log external commands, set this value
0314 # to 0.  If external commands should be logged, set this value to 1.
0315 # Note: This option does not include logging of passive service
0316 # checks - see the option below for controlling whether or not
0317 # passive checks are logged.
0318 
0319 log_external_commands=1
0320 
0321 
0322 
0323 # PASSIVE CHECKS LOGGING OPTION
0324 # If you don't want Nagios to log passive host and service checks, set
0325 # this value to 0.  If passive checks should be logged, set
0326 # this value to 1.
0327 
0328 log_passive_checks=1
0329 
0330 
0331 
0332 # GLOBAL HOST AND SERVICE EVENT HANDLERS
0333 # These options allow you to specify a host and service event handler
0334 # command that is to be run for every host or service state change.
0335 # The global event handler is executed immediately prior to the event
0336 # handler that you have optionally specified in each host or
0337 # service definition. The command argument is the short name of a
0338 # command definition that you define in your host configuration file.
0339 # Read the HTML docs for more information.
0340 
0341 #global_host_event_handler=somecommand
0342 #global_service_event_handler=somecommand