Nagios.cfg file Nagios.cfg
The default path is/usr/local/nagios/etc/ Nagios.cfg, is the Nagios core configuration file, all object configuration files must be defined in this file to play its role, where the object configuration file can only be referenced in the Nagios.cfg file.
Log_file=/usr/local/nagios/var/nagios.log
The "log_file" variable is used to define the path to the Nagios log file.
Cfg_file=/usr/local/nagios/etc/hosts.cfg
Cfg_file=/usr/local/nagios/etc/services.cfg
Cfg_file=/usr/local/nagios/etc/commands.cfg
Cfg_file=/usr/local/nagios/etc/contacts.cfg
Cfg_file=/usr/local/nagios/etc/timeperiods.cfg
Cfg_file=/usr/local/nagios/etc/templates.cfg
The "cfg_file" variable is used to refer to the object configuration file, and if there are more object profiles, add it here in turn.
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/soft/tools/
Object_cache_file=/usr/local/nagios/var/objects.cache This variable is used to specify a copy file for all object profiles, or an object buffer file
Resource_file=/usr/local/nagios/etc/resource.cfg
This variable is used to specify the path to the Nagios resource file, and you can define multiple resource files in Nagios.cfg.
Status_file=/usr/local/nagios/var/status.dat
This variable is used to define a state file that is used to hold Nagios's current status, comments, and downtime information. status_update_interval=10
The variable is used to define the update interval for the state file (that is, Status.dat), in seconds, and the minimum update interval is 1 seconds. Nagios_user=nagios
The variable specifies which user to run the Nagios process with.
Nagios_group=nagios
This variable is used to specify which user group the Nagios uses to run.
Check_external_commands=1
This variable is used to set whether Nagios is allowed to run CGI commands in the Web monitor interface, that is, whether to allow Nagios to perform restart Nagios under the Web interface, stop host/service checks, and so on. "1" is running, "0" is not allowed.
command_check_interval=2
This variable is used to set the time interval for nagios detection of external commands, if a number is specified plus an "s" (such as 10s), then the interval of the external instrumentation command is the time interval of this number in seconds. If "s" is not used, the interval of the external instrumentation command is the time interval of this number.
Interval_length=60
The variable specifies the time unit for the Nagios, and the default value is 60 seconds, which is 1 minutes, that is, all the time units in the Nagios configuration are minutes.