Chapter 2: configure the relationship between nagios and configuration files description 2.1 The Main configuration file of the main configuration file option Nagios is/usr/local/nagios/etc/nagios. cfg this article briefly describes the important variables in the main Configuration File 2.1.1 object configuration file format: pai_file & lt; file_nam...
Chapter 2: configure the relationship between nagios and configuration files
2.1 Main configuration file options
The main configuration file of Nagios is/usr/local/nagios/etc/nagios. cfg.
This article briefly describes the important variables in the main configuration file.
2.1.1 object configuration file
Format: pai_file = Example:
Export _file =/usr/local/nagios/etc/objects/contacts. cfg
Export _file =/usr/local/nagios/etc/objects/commands. cfg
For example, add a new host to configure linuxtone. cfg.
Export _file =/usr/local/nagios/etc/linuxtone. cfg
2.1.2 nagios users and groups
Nagios_user = nagios
Nagios_group = nagios
2.1.3 Notification options
Enable_configurications = 1
This option determines whether Nagios sends a notification during initialization or restart. If this option is not enabled, Nagios will not send notifications to any host or service. Note: If the status persistence option is enabled, Nagios ignores this setting during startup and restart and uses the most recent setting of this option (the status persistence file has been saved) unless you cancel the use_retained_program_state option. If you want to change this option when the enable state is saved (and use_retained_program_state), you must modify it through an appropriate external command or through a Web interface. Options can be:
0 = disable notification
1 = open notification (default)
This document does not list them one by one. For details, see:
Http: // nagios? Cn.sourceforge.net/nagios? Cn/configuration.html # configmain
2.2 object configuration file options
Pai_file =/usr/local/nagios/etc/objects/contacts. cfg // contact/group configuration file
Export _file =/usr/local/nagios/etc/objects/localhost. cfg // local Configuration File
Pai_file =/usr/local/nagios/etc/objects/timeperiods. cfg // monitoring time period configuration file
Pai_file =/usr/local/nagios/etc/objects/commands. cfg // monitoring script configuration
Pai_file =/usr/local/nagios/etc/objects/templates. cfg // monitoring service, alarm configuration
Pai_file =/usr/local/nagios/etc/objects/switch. cfg // monitor the route
Export _file =/usr/local/nagios/etc/objects/windows. cfg // monitor Microsoft
This article is from the "My home location" blog