Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_cciss - HP and Compaq Smart Array Hardware status
1.15
2017-04-28
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
GPL
212265
File | Description |
---|---|
check_cciss-1.8 | check_cciss 2008/10/06 (v.1.8) |
check_cciss-1.9 | check_cciss 2012/03/06 (v.1.9) |
check_cciss-1.10 | check_cciss 2012/04/04 (v.1.10) |
check_cciss-1.11 | check_cciss 2012/07/16 (v.1.11) |
check_cciss-1.12 | check_cciss 2013/11/20 (v.1.12) |
check_cciss-1.13 | check_cciss 2017/01/23 (v.1.13) |
check_cciss-1.14 | check_cciss 2017/02/25 (v.1.14) |
check_cciss-1.15 | check_cciss 2017/04/28 (v.1.15) |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This plugin checks hardware status for Smart Array Controllers, using the HP Array Configuration Utility CLI / HPE Smart Storage Administrator. (Array, controller, cache, disk, battery, etc...)
Examples:
./check_cciss -v
RAID OK: Smart Array 6i in Slot 0 array A logicaldrive 1 (67.8 GB, RAID 1+0, OK) (Controller Status: OK Cache Status: OK Battery Status: OK)
./check_cciss -v -p
RAID OK: Smart Array 6i in Slot 0 (Embedded) array A logicaldrive 1 (33.9 GB, RAID 1, OK)
physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 36.4 GB, OK)
physicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 36.4 GB, OK)
physicaldrive 1:5 (port 1:id 5 , Parallel SCSI, 72.8 GB, OK, spare)
[Controller Status: OK Cache Status: OK Battery/Capacitor Status: OK]
./check_cciss
RAID OK
Another Examples:
RAID CRITICAL - HP Smart Array Failed: Smart Array 6i in Slot 0 array A (failed) logicaldrive 1 (67.8 GB, 1+0, Interim Recovery Mode)
RAID WARNING - HP Smart Array Rebuilding: Smart Array 6i in Slot 0 array A logicaldrive 1 (67.8 GB, 1+0, Rebuilding)
Examples:
./check_cciss -v
RAID OK: Smart Array 6i in Slot 0 array A logicaldrive 1 (67.8 GB, RAID 1+0, OK) (Controller Status: OK Cache Status: OK Battery Status: OK)
./check_cciss -v -p
RAID OK: Smart Array 6i in Slot 0 (Embedded) array A logicaldrive 1 (33.9 GB, RAID 1, OK)
physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 36.4 GB, OK)
physicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 36.4 GB, OK)
physicaldrive 1:5 (port 1:id 5 , Parallel SCSI, 72.8 GB, OK, spare)
[Controller Status: OK Cache Status: OK Battery/Capacitor Status: OK]
./check_cciss
RAID OK
Another Examples:
RAID CRITICAL - HP Smart Array Failed: Smart Array 6i in Slot 0 array A (failed) logicaldrive 1 (67.8 GB, 1+0, Interim Recovery Mode)
RAID WARNING - HP Smart Array Rebuilding: Smart Array 6i in Slot 0 array A logicaldrive 1 (67.8 GB, 1+0, Rebuilding)
Reviews (26)
On failure this returns "exit $STATE_CRITICAL"
But $STATE_CRITICAL is not defined, so the return status is always good. Only the Status Information text changes.
But $STATE_CRITICAL is not defined, so the return status is always good. Only the Status Information text changes.
Owner's reply
Peter, the "$STATE_*" are definited into Nagios "utils.sh" (see include at line 134 of check_cciss-1.10)
The script work correctly from 2005 (v.1.0) with the same states!
bysimonerosa, March 5, 2012
Updated to check_cciss 1.9 (see www.monitoringexchange.org if not present here)
- Increased debug verbosity
- Added arguments to detect controller with HPSA driver (Hewlett Packard Smart Array) (-s)
- Recognize required firmware upgrades
- Don't confuse messages about a new fimrware with a chassis-error
- Check physical drives for predicted failures
- Added arguments to show detail for physical drives (-p)
- Check the state of the cache (a dead battery will turn the cache off)
Happy Nagios ;-)
- Increased debug verbosity
- Added arguments to detect controller with HPSA driver (Hewlett Packard Smart Array) (-s)
- Recognize required firmware upgrades
- Don't confuse messages about a new fimrware with a chassis-error
- Check physical drives for predicted failures
- Added arguments to show detail for physical drives (-p)
- Check the state of the cache (a dead battery will turn the cache off)
Happy Nagios ;-)
Owner's reply
Updated to 1.10
Happy Nagios! :-)
byjbroome, December 6, 2011
If you adjust the grep that jisse44 suggests to Fail vs. the Failed he suggests you'll pick up a drive status of "Predictive Failure" as well.
Owner's reply
Fixed! Thanks
Has worked well for my purposes. However, if there's a firmware upgrade, the check fails with "RAID UNKNOWN - /usr/sbin/hpacucli did not execute properly : Error: The controller identified by "chassisname=a" was not detected."
The firmware update text is falsely matching the egrep's regex. I made the following change to line 215 and 217:
original
... | egrep -v "Slot" | ...
modified
... | egrep -v -e "Slot" -e "scenario" | ...
The firmware update text is falsely matching the egrep's regex. I made the following change to line 215 and 217:
original
... | egrep -v "Slot" | ...
modified
... | egrep -v -e "Slot" -e "scenario" | ...
Owner's reply
Fixed! Thanks
Hi, very good plugin.
I just add lines to watch which physical drive is down or rebuilding, after line 210 of v1.8:
check2c=`sudo -u root $hpacucli controller slot=$slot physicaldrive all show 2>&1 | grep '\(Failed\|Rebuilding\)' | awk '{print $1, $2}'`
status=$?
if test ${status} -ne 0; then
echo "RAID UNKNOWN - $hpacucli did not execute properly : "${check2c}
exit $STATE_UNKNOWN
fi
check2="$check2$check2b -> /!\ $check2c"
I just add lines to watch which physical drive is down or rebuilding, after line 210 of v1.8:
check2c=`sudo -u root $hpacucli controller slot=$slot physicaldrive all show 2>&1 | grep '\(Failed\|Rebuilding\)' | awk '{print $1, $2}'`
status=$?
if test ${status} -ne 0; then
echo "RAID UNKNOWN - $hpacucli did not execute properly : "${check2c}
exit $STATE_UNKNOWN
fi
check2="$check2$check2b -> /!\ $check2c"
Owner's reply
Fixed! Thanks
byjdecello, March 20, 2010
This one works out of the box. The check_hparray that is just like this one does not work with nagios3. The check_hparray.pl errors out on arrays of slot=0 (all of mine) and didn't give verbose output.
This one I just did a -v in nrpe.cfg, simple and detailed.... though it doesn't handle UNKNOWN quite right... was still green rather than other. not a big deal....
This one I just did a -v in nrpe.cfg, simple and detailed.... though it doesn't handle UNKNOWN quite right... was still green rather than other. not a big deal....
Owner's reply
Fixed! Thanks
Page 2 of 2