I am running the check_raid script on a number of machines and I just noticed today that one of my machines was in a degraded state but I was not being alerted. The script is returning "CRITICAL" but Icinga sees it as ok.
Here's what I'm seeing on my Icinga machine (I have replaced the disk):
SNMP OK - "CRITICAL: tw_cli:[c3(9650SE-4LPML): u0(RAID-10): REBUILDING 65%, Cache:Ri, Drives(4): p2=DEGRADED p0,p1,p3=OK]"
The configuration for this machine is very simple:
define service{
use generic-service
host_name test
service_description RAID Status
check_command check_raid
}
Here's the command definition:
define command{
command_name check_raid
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -o ucdavis.80.3.1.1.13.47.117.115.114.47.98.105.110.47.112.101.114.108 -C public -r "OK"
And on the machine being checked I have the following in the snmpd.conf:
extend .1.3.6.1.4.1.2021.80 /usr/bin/perl /usr/local/bin/check_raid.pl
I'm using the latest version of the script, anyone have any ideas about what I'm doing wrong? Is the -r "OK" always returning an ok?