aboutsummaryrefslogtreecommitdiff
path: root/contrib/check_linux_raid.pl
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2010-04-12 15:55:18 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2010-04-12 15:55:18 +0200
commit753b88408833702dbcf004e00a846550c2a0e952 (patch)
tree4810331e318eb8acf8713c671d886c31ac47086c /contrib/check_linux_raid.pl
parent933918ce5dd0c0f162e5d4acc0f1cfdc9c7a1631 (diff)
downloadmonitoring-plugins-753b88408833702dbcf004e00a846550c2a0e952.tar.gz
Fix Debian bug #574612: Return WARNING on rebuild
Let check_linux_raid return a WARNING instead of an OK state during volume recovery. See: http://bugs.debian.org/574612 (Fixed by Christoph Martin, forwarded by Jan Wagner.)
Diffstat (limited to 'contrib/check_linux_raid.pl')
-rw-r--r--contrib/check_linux_raid.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/check_linux_raid.pl b/contrib/check_linux_raid.pl
index c7c9c55e..d2e5b463 100644
--- a/contrib/check_linux_raid.pl
+++ b/contrib/check_linux_raid.pl
@@ -64,6 +64,7 @@ while(defined $nextdev){
} elsif (/recovery = (.*?)\s/) {
$recovery{$device} = $1;
($finish{$device}) = /finish=(.*?min)/;
+ $device=undef;
} elsif (/^\s*$/) {
$device=undef;
}