From 8190e9bb6f423f291c0e72b00116261ba3c985a7 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Sun, 11 Nov 2018 21:22:08 +0000 Subject: [PATCH] this should fix the nagios check on raid --- roles/nagios_client/files/scripts/check_raid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nagios_client/files/scripts/check_raid.py b/roles/nagios_client/files/scripts/check_raid.py index 48cddd93d4..abe205227f 100644 --- a/roles/nagios_client/files/scripts/check_raid.py +++ b/roles/nagios_client/files/scripts/check_raid.py @@ -21,7 +21,7 @@ for line in mdstat: if line[0:2] == 'md': device = string.split(line)[0] devices.append(device) - status = string.split(mdstat[i+1])[3] + status = string.split(mdstat[i+1])[-1] if string.count(status, "_"): # see if we can figure out what's going on err = string.split(mdstat[i+2])