[project @ peter@palfrader.org-20080424192248-gc4nqqhrj2cz3ves]
authorPeter Palfrader <peter@palfrader.org>
Thu, 24 Apr 2008 19:22:48 +0000 (19:22 +0000)
committerPeter Palfrader <peter@palfrader.org>
Thu, 24 Apr 2008 19:22:48 +0000 (19:22 +0000)
A raid check for verdi

dsa-nagios-nrpe-config/debian/changelog
dsa-nagios-nrpe-config/debian/rules
dsa-nagios-nrpe-config/dsa-check-raid-dac960 [new file with mode: 0755]
nagios-master.cfg

index ec5ac86..7ce96e7 100644 (file)
@@ -1,3 +1,9 @@
+dsa-nagios-nrpe-config (33) unstable; urgency=low
+
+  * Add dsa-check-raid-dac960
+
+ -- Peter Palfrader <weasel@debian.org>  Thu, 24 Apr 2008 19:20:57 +0000
+
 dsa-nagios-nrpe-config (32) unstable; urgency=low
 
   * Add dsa-check-udldap-freshness.
index e42d5c3..1ab4ab4 100755 (executable)
@@ -14,6 +14,7 @@ install:
        dh_installdirs
 
        install -m 644 nrpe_dsa.cfg $(CURDIR)/debian/dsa-nagios-nrpe-config/etc/nagios
+       install -m 755 dsa-check-raid-dac960 $(CURDIR)/debian/dsa-nagios-nrpe-config/usr/lib/nagios/plugins
        install -m 755 dsa-check-raid-sw $(CURDIR)/debian/dsa-nagios-nrpe-config/usr/lib/nagios/plugins
        install -m 755 dsa-check-da-in-aliases $(CURDIR)/debian/dsa-nagios-nrpe-config/usr/lib/nagios/plugins
        install -m 755 dsa-check-dabackup $(CURDIR)/debian/dsa-nagios-nrpe-config/usr/lib/nagios/plugins
diff --git a/dsa-nagios-nrpe-config/dsa-check-raid-dac960 b/dsa-nagios-nrpe-config/dsa-check-raid-dac960
new file mode 100755 (executable)
index 0000000..7893365
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# Nagios check for Mylex DAC960/AcceleRAID/eXtremeRAID PCI RAID Controllers
+#
+# Some background information on the driver is available at
+# http://home.germany.net/100-120220/mylex/DAC960.README
+#
+# Written 2008 Peter Palfrader
+
+if [ -e /proc/rd/status ]; then
+       status=`cat /proc/rd/status`
+       if [ "$status" = "OK" ]; then
+               echo "OK: all DAC960 controllers operating normally; no (non-standby) failures have occurred"
+               exit 0;
+       else
+               echo "CRITICAL: proc/rd/status is $status"
+               exit 2;
+       fi;
+else
+       echo "UNKNOWN: No DAC960 controllers in the system"
+       exit 3;
+fi
index 7bcf5a2..a77b99f 100644 (file)
@@ -1080,6 +1080,11 @@ services:
     name: RAID - arrayprobe
     nrpe: "sudo /usr/bin/arrayprobe"
     hostgroups: dl385, dl380, dl360
+ ###
+  -
+    name: RAID - DAC960
+    nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-dac960"
+    hosts: verdi
 
  ###
   -