HP XC System Software Administration Guide Version 4.0

Table Of Contents
7. Create the ssh keys for the newname user account:
# /opt/hptc/bin/ssh_create_shared_keys user newname
8. Capture the Nagios keys and replicate them across the HP XC system:
# tar cvf /hptc_cluster/newname_keys.tar /home/newname
# pdsh a x nh "tar xvf /hptc_cluster/newname_keys.tar"
9. Verify that you can log in to a random node as the newname user:
# ssh any_node -l newname
10. Use the nconfigure utility to reconfigure Nagios across the HP XC system:
# pdsh a "service nagios nconfigure"
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 141) 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/
120 Monitoring the System with Nagios