Check for absence of /proc/mdstat
authorPeter Palfrader <peter@palfrader.org>
Sun, 14 Dec 2014 13:27:18 +0000 (14:27 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sun, 14 Dec 2014 13:27:24 +0000 (14:27 +0100)
config/nagios-master.cfg

index d9631f8..729ab2c 100644 (file)
@@ -1968,6 +1968,12 @@ services:
     servicegroups: raid
     nrpe: "/usr/lib/nagios/plugins/dsa-check-raid-sw"
     hostgroups: sw-raid
+  -
+    name: RAID - unexpected sw raid
+    servicegroups: raid
+    nrpe: "if [ -e /proc/mdstat ]; then echo 'Found /proc/mdstat'; exit 1; else echo 'No /proc/mdstat on this host.'; fi"
+    hostgroups: computers
+    excludehostgroups: sw-raid
   ###
   -
     name: HW - hpacucli status