HP XC System Software Administration Guide Version 3.1
NOTE: If you change the nagios_vars.ini file, you must propagate it to all nodes. For more
information, see Chapter 10 (page 129)
Figure 8-8 Nagios Configuration
When you change the Nagios configuration, you must perform the following tasks:
1. Read the Nagios documentation carefully.
2. Change the template files accordingly.
3. Stop the Nagios service. For instructions on how to stop the Nagios service, see “Stopping and
Restarting Nagios” (page 110).
4. Repopulate the Nagios configuration files you changed throughout the HP XC system. Use the pdcp
command to copy the files onto all the nodes from the head node immediately, and use the
updateimage utility to make this change permanent.
5. Restart Nagios service. For instructions on how to restart the Nagios service, see “Stopping and
Restarting Nagios” (page 110).
6. Verify the results by using the Nagios Web interface.
8.3.3 Forwarding Nagios e-mail Alerts
Nagios sends e-mail by default to the nagios user.
The simplest method to forward e-mail alerts is to log in as the Nagios user and to create a .forward file
in the Nagios user's directory (usually /home/nagios) to redirect e-mail alert messages from Nagios to
another e-mail account. This method assures that the .forward file's permissions are correct.
NOTE:
Ensure that the sendmail utility is running. For information on the implementation of the sendmail
utility on the HP XC system, see “Modifying Sendmail” (page 127).
You can customize the Nagios configuration to specify whom to contact by editing the
/opt/hptc/nagios/etc/contacts.cfg file. The main portion of this file is shown here:
Improved Availability Is in Effect 111