diff options
| author | Holger Weiss <holger@zedat.fu-berlin.de> | 2010-04-12 15:55:18 +0200 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2010-04-12 15:55:18 +0200 |
| commit | 753b88408833702dbcf004e00a846550c2a0e952 (patch) | |
| tree | 4810331e318eb8acf8713c671d886c31ac47086c /contrib | |
| parent | 933918ce5dd0c0f162e5d4acc0f1cfdc9c7a1631 (diff) | |
| download | monitoring-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')
| -rw-r--r-- | 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 c7c9c55e..d2e5b463 100644 --- a/contrib/check_linux_raid.pl +++ b/contrib/check_linux_raid.pl | |||
| @@ -64,6 +64,7 @@ while(defined $nextdev){ | |||
| 64 | } elsif (/recovery = (.*?)\s/) { | 64 | } elsif (/recovery = (.*?)\s/) { |
| 65 | $recovery{$device} = $1; | 65 | $recovery{$device} = $1; |
| 66 | ($finish{$device}) = /finish=(.*?min)/; | 66 | ($finish{$device}) = /finish=(.*?min)/; |
| 67 | $device=undef; | ||
| 67 | } elsif (/^\s*$/) { | 68 | } elsif (/^\s*$/) { |
| 68 | $device=undef; | 69 | $device=undef; |
| 69 | } | 70 | } |
