HP XC System Software Administration Guide Version 3.1
• “Changing Sensor Thresholds” (page 112)
• “Adjusting the Time Allotted for Metrics Collection” (page 112)
• “Changing the Default Nagios User Name” (page 113)
• “Disabling Individual Nagios Plug-Ins” (page 115)
8.3.1 Stopping and Restarting Nagios
Nagios can record a multitude of alerts on large systems when many nodes undergo known maintenance
operations. These operations can include restarting or shutting down the HP XC system.
To avoid these alerts, shut down Nagios on the head node immediately before these maintenance operations
with the following command:
# pdsh -a "service nagios stop"
To restart Nagios after a maintenance operation, use the following command:
# pdsh -a "service nagios start"
To restart Nagios after changing its configuration, use the following command:
# pdsh -a "service nagios restart"
Improved Availability Is in Effect
If improved availability is in effect, you must restart the nagios service (that is, the Nagios master) using
the system's availability tool. Following is an example of how to restart the nagios service using HP
Serviceguard. This example restarts the Nagios master, which is running on node n128.
1. Run the /usr/local/cmcluster/bin/cmviewcl command to determine which node the Nagios
master is running on:
# /usr/local/cmcluster/bin/cmviewcl | grep nagios
nagios.n128 up running enabled n128
2. Stop Nagios using this Serviceguard command:•
# /usr/local/cmcluster/bin/cmhaltpkg nagios.n128
• Restart Nagios using the following Serviceguard commands:
# /usr/local/cmcluster/bin/cmhaltpkg nagios.n128
# /usr/local/cmcluster/bin/cmrunpkg -n n128 nagios.n128
# /usr/local/cmcluster/bin/cmmodpkg -e nagios.n128
8.3.2 Updating the Nagios Configuration
Most of the following sections provide you with information on which template files to update to accomplish
a given task. The nagios_vars.ini file contains most of the parameters that define the Nagios
configuration. Editing this file is key for most of the configuration updates you want to perform. The HP
XC System Software also features Nagios template files that define configurable parameters.
As shown in Figure 8-8, the template files, the nagios_vars.ini file, and data from the configuration
and management database (CMDB) are processed by a Nagios configurator to generate include files that
form the basis for the configured Nagios application.
110 Monitoring the System with Nagios