3 running nagios plug-ins manually, 4 using the nagios report generator analyze mode, 5 messages reported by nagios – HP Insight Control Software for Linux User Manual
Page 221
25.14.3 Running Nagios plug-ins manually
The Nagios plug-ins are located in the /opt/hptc/nagios/libexec directory. You can run
them from the command line if needed.
To run the Nagios check_sel plug-in from the command line, follow these steps:
1.
Log in as the nagios user.
2.
Change to the following directory:
$ cd /opt/hptc/nagios/libexec
3.
Locate the Nagios plug-in you want to run, for example:
$ ls *_sel
4.
Optionally, invoke the Nagios plug-in with the --help option:
$ ./check_sel --help
check_sel <--help> -H hostname <-t timeout>
--help
-H Host to check
--cache file Persistent cache to remember where we last read/processed
default /hptc_cluster/adm/logs/sel/cache/selcache-$nodename.db
--clear Clear the SEL log after reading
--clearifused n Clear the log only if it is past n% full
--ignoreunknownhosts
Ignore unknown hosts, default is to return critical
--last n
--logfile file Log output to file,
default /hptc_cluster/adm/logs/sel/sel-{host}.log
--rules file File containing rule patterns, default /opt/hptc/nagios/etc/selRules
--cp cptype Console type string
5.
Run the Nagios plug-in:
$ ./check_sel -H iclx7
No new entries in event log
$
25.14.4 Using the Nagios report generator analyze mode
The Nagios Report Generator (nrg) command features an analyze mode that can help you
determine the cause of a problem. It also offers information on the solution.
Enter following command to run the nrg analyze mode:
# nrg --mode analyze
Nodelist Description
-------- -------------------------------------------------------------------------
USE6371RA4 Enclosure Status - Warning> The enclosure is reporting one or more
warning conditions for environmental sensors gathered from the device.
Check the sensor status on the enclosure. Verify the status of the
Enclosures Collection Monitor which provides this data.
nh
Monitor collects sensor information from the blade system enclosures.
Enclosure status can be found in the Nagios Enclosure Status service
plug-in status. A critical status indicates that one or more of the
monitored enclosures has either posted a critical status or the
plug-in has been unable to contact the enclosure. Verify logon
credentials are correct if sensor data is not available.
mercury nh neptune
thresholds set in nagios_vars.ini. These are site specific values and
simply indicate resource usage above an expected range. Verify that the
node does not have a misbehaving job or some other problem causing it to
use more CPU then expected.
mercury neptune NodeInfo - Critical> Critical thresholds have been reached for max users,
processes, or zombies etc. See nagios_vars.ini for threshold values.
Values are site specific and critical values indicate values have been
exceeded.
25.14.5 Messages reported by Nagios
Nagios reports messages in the Service Detail and Service Problems windows. These messages
can help you detect current problems and prevent future problems.
shows a portion of
the Nagios Service Detail window that displays two messages.
25.14 Nagios Troubleshooting 221