Table of Contents Previous Next


4 Performance Monitoring and Management : 4.5 Alerting : 4.5.3 Using PEM with Nagios

[timestamp] PROCESS_SERVICE_CHECK_RESULT; host_name ; service_name ; service_status ;
timestamp is the date and time that the alert was triggered.
host_name is the name of the server or agent.
service_name is the name of the alert.
service_status is the numeric service status value:
0 if the service status is OK
1 if the service status is WARNING
2 if the service status is CRITICAL
3 if the service status is UNKNOWN
If the PEM alert level is CLEARED, the warning message will read OK.
If the PEM alert level is LOW, the warning message will read WARNING.
If the is_nagios_medium_alert_as_critical flag (specified in the PEM server configuration dialog) is set to FALSE and the alert level MEDIUM, the warning message will read WARNING.
If the is_nagios_medium_alert_as_critical flag (specified in the PEM server configuration dialog) is set to TRUE and the alert level is MEDIUM, the warning message will read CRITICAL.
If the PEM alert level is HIGH, the warning message will read CRITICAL.
The PEM server maintains a unique set of notification properties for each enabled alert. Use the Notification tab of the Manage Alerts tab to specify that (when triggered), a given alert will send an alert notice to Nagios.
To modify the notification properties of an alert, right-click on the name of the object monitored by the alert, and select Manage Alerts... from the Management menu. When the Manage Alerts tab opens, locate the alert, and then click the edit button to the left of the alert name in the Alerts list. When the edit pane opens, select the Notification tab (shown in Figure 4.49).
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\aefdba5c\nagios_alert_notification.png
To enable Nagios notification, move the slider next to Submit passive service check result to Nagios to Yes; before exiting the Manage Alerts tab, click the save icon to preserve your changes.
You can use the Server Configuration dialog to provide information about your Nagios configuration to the PEM server. To open Server Configuration dialog (see Figure 4.50), select Server Configuration... from the PEM client's Management menu.
C:\Users\susan\AppData\Local\Temp\vmware-susan\VMwareDnD\ac7ebd51\nagios_server_configuration.png
Use the nagios_cmd_file_name parameter to specify the location of the Nagios pipeline file that will receive passive check alerts from PEM. The default value of this parameter is /usr/local/nagios/var/rw/nagios.cmd. If your nagios.cmd file resides in an alternate location, specify the file location in the Value field.
Move the slider in the nagios_enabled parameter to Yes to instruct the PEM server to send passive check alerts to Nagios.
Use the nagios_medium_alert_as_critical slider to specify the warning severity that the PEM server will pass to Nagios if a medium alert is triggered:
If the is_nagios_medium_alert_as_critical flag is set to FALSE and the alert level is MEDIUM, the warning message will read WARNING.
If the is_nagios_medium_alert_as_critical flag is set to TRUE and the alert level is MEDIUM, the warning message will read CRITICAL.
Use the nagios_spool_retention_time parameter to specify the number of days of notification history that will be stored on the PEM server. The default value is 7 days.
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.
After creating the host.cfg and services.cfg files, you must specify their location in the Nagios configuration file (by default, /usr/local/nagios/etc/nagios.cfg). Modify the configuration file, adding entries that specify the location of the files:

4 Performance Monitoring and Management : 4.5 Alerting : 4.5.3 Using PEM with Nagios

Table of Contents Previous Next