From fa102c8db63c737b51ccd68828a46b02b05f1e6a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 14 Dec 2014 14:27:18 +0100 Subject: [PATCH] Check for absence of /proc/mdstat --- config/nagios-master.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/nagios-master.cfg b/config/nagios-master.cfg index d9631f8..729ab2c 100644 --- a/config/nagios-master.cfg +++ b/config/nagios-master.cfg @@ -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 -- 2.20.1