retire da-backup checks
[mirror/dsa-nagios.git] / dsa-nagios-checks / checks / dsa-check-raid-dac960
1 #!/bin/sh
2
3 # Nagios check for Mylex DAC960/AcceleRAID/eXtremeRAID PCI RAID Controllers
4 #
5 # Some background information on the driver is available at
6 # http://home.germany.net/100-120220/mylex/DAC960.README
7 #
8 # Written 2008 Peter Palfrader
9
10 if [ -e /proc/rd/status ]; then
11         status=`cat /proc/rd/status`
12         if [ "$status" = "OK" ]; then
13                 echo "OK: all DAC960 controllers operating normally; no (non-standby) failures have occurred"
14                 exit 0;
15         else
16                 echo "CRITICAL: proc/rd/status is $status"
17                 exit 2;
18         fi;
19 else
20         echo "UNKNOWN: No DAC960 controllers in the system"
21         exit 3;
22 fi