[nagiosplug] Fix Debian bug #574612: Return WARNING on rebuild

Holger Weiss hweiss at users.sourceforge.net
Mon Apr 12 16:02:34 CEST 2010


 Module: nagiosplug
 Branch: master
 Commit: 753b88408833702dbcf004e00a846550c2a0e952
 Author: Holger Weiss <holger at zedat.fu-berlin.de>
   Date: Mon Apr 12 15:55:18 2010 +0200
    URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=753b884

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.)

---

 contrib/check_linux_raid.pl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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;
 			}





More information about the Commits mailing list