14 nagios troubleshooting, 1 determining the status of the nagios service, 2 examining nagios log files – HP Insight Control Software for Linux User Manual
Page 220
Corrective Actions
Cause/Symptom
•
Run the following command to determine if the
infrastructure is gathering data:
/opt/hptc/cmu/bin/cmumon –actionfile \
/opt/hptc/cmu/etc/sysconfig/ActionAndAlertsFile.txt
–cmustatdir \
/opt/hptc/cmu/tmp/GUI --foreground --lm
NOTE:
This command is continued over three lines
for clarity.
Examine the two Performance Dashboard log files for
errors:
Performance Dashboard stops presenting data. The broken
GIF symbol is displayed.
/var/opt/mx/logs/mxdomainmgr.0.log
/tmp/dbg
Determine that JavaScript has permission to replace context
menus in the browser.
Incorrect Performance Dashboard context menu is displayed
for a right-click of the mouse.
Restart the Performance Dashboard tool:
Performance Dashboard select metric menu might stop
working
On rare occasions, the Performance Dashboard select
metric menu stops working. The menu appears, but
selecting or unselecting a metric has no effect.
Tools
→Integrated Consoles→Performance Dashboard...
25.14 Nagios Troubleshooting
This section contains the following general troubleshooting topics for Nagios:
•
“Determining the status of the Nagios service” (page 220)
•
“Examining Nagios log files” (page 220)
•
“Running Nagios plug-ins manually” (page 221)
•
“Using the Nagios report generator analyze mode” (page 221)
•
“Messages reported by Nagios” (page 221)
•
“A check_nrpe error occurs during management agents installation” (page 224)
•
“Nagios gather_all_data script reports check_nrpe errors ” (page 224)
•
“Troubleshooting Nagios problems” (page 224)
25.14.1 Determining the status of the Nagios service
Use the following command to determine if Nagios is running properly:
# /etc/init.d/nagios status
Nagios ok: located 1 process, status log updated 22 seconds ago
Gathering status for nrpe ... iclx<3-8>NRPE v2.0 - iclx<3-8>
Nagios nsca:
iclx7: 0 data packet(s) sent to host successfully.
iclx5: 0 data packet(s) sent to host successfully.
iclx6: 0 data packet(s) sent to host successfully.
25.14.2 Examining Nagios log files
Examine the following log files to obtain information on Nagios operation:
•
For errors: the /opt/hptc/nagios/var/nagios.log file
•
For system status: the /opt/hptc/nagios/var/status.log file
•
For Nagios errors: the /var/log/messages file
220 Troubleshooting