1. Overview 2. Configuration file 3. Nagios.cfg detailed
Nagios.cfg is the main configuration file of Nagios monitoring system and is the implementation of Nagios basic functions.
The configuration and parameters in the table below are parameters for the deployment of Nagios (version 4.4.1) in this series of blogs and are for informational purposes only.
log_file:/usr/local/globle/softs/monitor/nagios/4.4.1/var/nagios.log
The total log file for the Nagios runtime. Must be the first option in the configuration file. Enabled by default.
cfg_fie:/usr/local/globle/softs/monitor/nagios/4.4.1/etc/objects/commands.cfg
The command template configuration file. Enabled by default
Parameter name |
Parameter values |
Parameter meaning |
Default value |
Log_file |
/usr/local/globle/softs/monitor/nagios/4.4.1/var/nagios.log |
The total log file for the Nagios runtime. Must be the first option of the configuration file |
Enabled by default |
Cfg_file |
/usr/local/globle/softs/monitor/nagios/4.4.1/etc/objects/commands.cfg |
The command template configuration file. |
Enabled by default |
Cfg_file |
/usr/local/globle/softs/monitor/nagios/4.4.1/etc/objects/contacts.cfg |
Contact Template configuration file |
Enabled by default
|
Cfg_file
|
/usr/local/globle/softs/monitor/nagios/4.4.1/etc/objects/timeperiods.cfg |
Time Template configuration file |
Enabled by default |
Cfg_file |
/usr/local/globle/softs/monitor/nagios/4.4.1/etc/objects/templates.cfg |
Template configuration file |
Enabled by default |
Cfg_file |
/usr/local/globle/softs/monitor/nagios/4.4.1/etc/objects/localhost.cfg |
Native (monitoring host) configuration file |
Enabled by default |
Cfg_file |
/usr/local/globle/softs/monitor/nagios/4.4.1/etc/objects/windows.cfg |
Window Host configuration file |
Default off |
Cfg_file |
/usr/local/globle/softs/monitor/nagios/4.4.1/etc/objects/switch.cfg |
Switch configuration file |
Default off |
Cfg_file |
/usr/local/globle/softs/monitor/nagios/4.4.1/etc/objects/printer.cfg |
Printer configuration file |
Default off |
Cfg_dir |
/usr/local/globle/softs/monitor/nagios/4.4.1/etc/servers |
The configuration file directory. The xxx.cfg in this directory will take effect. Easy Configuration Management |
Default off |
Object_cache_file |
/usr/local/globle/softs/monitor/nagios/4.4.1/var/objects.cache |
Object cache file. When Nagios is started or restarted, it is used by CGI to avoid conflicts caused by Nagios object configuration file modifications when CGI reads object configuration from the configuration file. |
Enabled by default |
Precached_object_file |
/usr/local/globle/softs/monitor/nagios/4.4.1/var/objects.precache |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Precached_object_file
object to apply the file.
Nagios configuration file