summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.org>2012-09-25 07:36:48 (GMT)
committerSven Nierlein <sven@nierlein.org>2012-09-25 07:36:48 (GMT)
commitc5583abbf243115eb4403dff1c1d8c80f8778989 (patch)
tree546b407eebd5f2bcd7776c4aa5ef59a5741aa064
parent4cdda35b6c6368683a27f0b89d3243b5278d8680 (diff)
parent9703858ba325d069a1a8538a655e3aa186382aa9 (diff)
downloadmonitoring-plugins-c5583abbf243115eb4403dff1c1d8c80f8778989.tar.gz
Merge pull request #18 from abradley/recoverypct
Bugfix: Detect array recovery percentages < 10% in check_linux_raid.pl
-rw-r--r--contrib/check_linux_raid.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/check_linux_raid.pl b/contrib/check_linux_raid.pl
index 77e75f6..c24b0cd 100644
--- a/contrib/check_linux_raid.pl
+++ b/contrib/check_linux_raid.pl
@@ -61,7 +61,7 @@ while(defined $nextdev){
61 if (defined $device) { 61 if (defined $device) {
62 if (/(\[[_U]+\])/) { 62 if (/(\[[_U]+\])/) {
63 $status{$device} = $1; 63 $status{$device} = $1;
64 } elsif (/recovery = (.*?)\s/) { 64 } elsif (/recovery =\s+(.*?)\s/) {
65 $recovery{$device} = $1; 65 $recovery{$device} = $1;
66 ($finish{$device}) = /finish=(.*?min)/; 66 ($finish{$device}) = /finish=(.*?min)/;
67 $device=undef; 67 $device=undef;