this should fix the nagios check on raid

This commit is contained in:
Stephen Smoogen 2018-11-11 21:22:08 +00:00
parent a0244b6eac
commit 8190e9bb6f

View file

@ -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])