HP XC System Software Administration Guide Version 3.2

21.2 Nagios Troubleshooting
This section contains general troubleshooting information for Nagios application.
NOTE: Nagios runs only nodes with the management_server or management_hub roles.
See “Messages Reported by Nagios” for additional information.
21.2.1 Determining the Status of the Nagios Service
Use the following command to determine if Nagios is running properly:
# pdsh -a "service nagios status"
Nagios ok: located 1 process, status log updated 22 seconds ago
Gathering status for nrpe ... n[3-8]NRPE v2.0 - n[3-8]
Nagios nsca:
n7: 0 data packet(s) sent to host successfully.
n5: 0 data packet(s) sent to host successfully.
n6: 0 data packet(s) sent to host successfully.
21.2.2 Nagios Fails to Start
If Nagios fails to start, one or more Nagios daemons failed to start on a Nagios master or Nagios
monitor node. Use the following procedure to start the Nagios daemons manually to overcome
this:
1. Determine if the node that fails to run Nagios is a Nagios master or a Nagios monitor.
The following command returns a list of nodes that are Nagios master nodes:
# shownode servers nagios
The following command returns a list of nodes that are Nagios monitor nodes:
# shownode servers nagios_monitor
NOTE: If the node is both a Nagios master and a Nagios monitor, follow the procedure
for a Nagios master node.
2. Use the ssh utility to log in as superuser (root) on the node that fails to run Nagios.
3. Follow these steps for Nagios master nodes:
a. Stop the Nagios service:
# pdsh -a "service nagios stop nagios"
b. Change to the /opt/hptc/nagios/bin directory.
c. Start the Nagios service:
# ./nagios ../etc/nagios_local.cfg
4. Follow these steps for Nagios monitor nodes:
a. Stop the Nagios service:
# pdsh -a "service nagios stop nagios"
b. Change to the /opt/hptc/nagios/bin directory.
c. Start the Nagios service:
# ./nagios ../etc/nagios_monitor$-(nodename).cfg
21.2 Nagios Troubleshooting 247