HP XC System Software Administration Guide Version 3.2

11. Restart Nagios. For instructions on how to restart Nagios, see “Stopping and Restarting
Nagios” (page 115).
8.3.7 Disabling Individual Nagios Plug-Ins
All the Nagios plug-ins developed for the HP XC system are enabled by default. However, you
can modify the /opt/hptc/nagios/etc/templates/*_template.cfg files to customize
the service checks as needed.
IMPORTANT: Do not modify files in the /opt/hptc/nagios/etc directory with file names
of the form *_local.cfg or xc_*.cfg.
Use the following procedure to disable a specific Nagios plug-in:
1. Log in as superuser (root) on the head node.
2. Change directory to the /opt/hptc/nagios/etc/templates/ directory:
# cd /opt/hptc/nagios/etc/templates
3. Determine the appropriate template file to disable the plug-in.
This procedure uses the nagios_template.cfg file as an example.
4. Use the text editor of your choice to modify the template file.
5. Use the pdcp command to copy the template file to all the nodes in the HP XC system.
# pdcp -a nagios_template.cfg /opt/hptc/nagios/etc/templates/
6. Stop the Nagios service on all the nodes. For instructions on how to stop Nagios, see
“Stopping and Restarting Nagios” (page 115).
7. Reconfigure Nagios on all the nodes:
# pdsh -a "service nagios nconfigure"
8. Restart the Nagios service on all the nodes. For instructions on how to restart Nagios, see
“Stopping and Restarting Nagios” (page 115).
Update the golden image with the Nagios template file to ensure a permanent change. See
Chapter 11 (page 139) for more information.
8.4 Configuring Nagios on HP XC Systems
The HP XC Nagios configuration is designed so that you can customize it as needed.
You can find the complete documentation for customizing Nagios on the Nagios web address:
www.nagios.org
Additional information on Nagios is commercially available. The following web address lists
documents that describe Nagios and its use for system and network administration:
http://www.nagios.org/propaganda/books/
This section contains information about HP XC Nagios configuration and procedures for
configuring Nagios for your system. It addresses the following topics:
“Monitored Nagios Services” (page 120)
“Nagios Default Settings” (page 122)
“Understanding Nagios Alert Messages” (page 124)
“System Event Log Monitoring” (page 125)
8.4.1 Monitored Nagios Services
Table 8-2 lists each Nagios service, also known as a plug-in, that Nagios monitors, by category
and the function. The items in the Nagios Service column of this table correspond to the Service
120 Monitoring the System with Nagios