Table of Contents Previous Next


4 Performance Monitoring and Management : 4.5 Alerting : 4.5.3 Using PEM with Nagios : 4.5.3.3 Creating the hosts.cfg and services.cfg File

The templates.cfg file (by default, located in /usr/local/nagios/etc/objects) specifies the properties of a generic-host and generic-service. The properties specify the parameters used in the hosts.cfg and services.cfg files.
In most cases (when PEM is installed in a default configuration), you will not be required to modify the templates.cfg file before creating the hosts.cfg and services.cfg files. If necessary, you can modify the templates.cfg file to specify alternate values for parameters or to create new templates.
Before modifying the Nagios configuration file, use the following command to create a hosts.cfg file that contains information about the PEM hosts that reside on the local system:
Then, use the following command to create a services.cfg file that contains information about the PEM services that reside on the local system:
If you wish to use a custom template.cfg file entry, specify the entry name in place of generic-host or generic-service in the above commands.

4 Performance Monitoring and Management : 4.5 Alerting : 4.5.3 Using PEM with Nagios : 4.5.3.3 Creating the hosts.cfg and services.cfg File

Table of Contents Previous Next