summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2010-04-12 15:49:24 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2010-04-12 15:49:24 +0200
commit933918ce5dd0c0f162e5d4acc0f1cfdc9c7a1631 (patch)
treec7aafa0cabc1073428ac41c744285a97238bad56 /contrib
parent7a661c7aed2a0bad4ce1e3786bc707cd2b07c128 (diff)
downloadmonitoring-plugins-933918ce5dd0c0f162e5d4acc0f1cfdc9c7a1631.tar.gz
Fix Debian bug #534604: Checking md10 and above
| check_linux_raid malfunctions if system has software RAID devices with | two or more digits. For example, for system having /dev/md10, | /dev/md11 etc, the plugin returns 'UNKNOWN' in automatic mode (if RAID | devices are manually specified it works). Also, if system has both | one-digit, and two-digit RAID devices, the two-digit devices are | silently ignored in checks, which is even more problematic. [ http://bugs.debian.org/534604 ] (Fixed by Matija Nalis, forwarded by Jan Wagner.)
Diffstat (limited to 'contrib')
-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 da1aff84..c7c9c55e 100644
--- a/contrib/check_linux_raid.pl
+++ b/contrib/check_linux_raid.pl
@@ -44,7 +44,7 @@ sub max_state($$){
44 44
45my $nextdev; 45my $nextdev;
46if(defined $ARGV[0]) { $nextdev = shift; } 46if(defined $ARGV[0]) { $nextdev = shift; }
47else { $nextdev = "md[0-9]"; } 47else { $nextdev = "md[0-9]+"; }
48 48
49my $code = "UNKNOWN"; 49my $code = "UNKNOWN";
50my $msg = ""; 50my $msg = "";