From: Holger Weiss Date: Mon, 12 Apr 2010 13:55:18 +0000 (+0200) Subject: Fix Debian bug #574612: Return WARNING on rebuild X-Git-Url: https://git.tokkee.org/?p=nagiosplug.git;a=commitdiff_plain;h=753b88408833702dbcf004e00a846550c2a0e952 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.) --- diff --git a/contrib/check_linux_raid.pl b/contrib/check_linux_raid.pl index c7c9c55..d2e5b46 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; }