DO NOT USE THIS SCRIPT!!!!!

use check_cciss.

check_hparray WILL provide false positives!!

Note to the author – thank you, the tool seems to be the basis for other tools. Someone had to make the first tool. You check for OK before you check for failed 🙁

Here we have a server with a failed battery and a failed array, yet check_hparray reports to nagios that all is well.

[nagios@alpha plugins]$ ./check_hparray -s 1
RAID OK – (Smart Array P800 in Slot 1 array A logicaldrive 1 (68.3 GB, RAID 1, OK) array B (Failed) logicaldrive 2 (1.2 TB, RAID 1+0, Interim Recovery Mode))
[nagios@alpha plugins]$ echo $?
0

Here is another server with a failed array that reports all is well:

-bash-3.2$ ./check_hparray -s 1
RAID OK – (Smart Array P800 in Slot 1 array A (Failed) logicaldrive 1 (68.3 GB, RAID 1, Interim Recovery Mode) array B logicaldrive 2 (1.2 TB, RAID 1+0, OK))