summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnagios-check-raid.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/nagios-check-raid.pl b/nagios-check-raid.pl
index c7f75fc..f971d66 100755
--- a/nagios-check-raid.pl
+++ b/nagios-check-raid.pl
@@ -93,7 +93,7 @@ my $device = '';
# Now check the mdstat file..
while (<FH>) {
$line = $_;
- if ($line =~ /^(md.*) /) {
+ if ($line =~ /^(md\S*) /) {
$device = $1;
} elsif( $line =~ / \[_|_\]|U_|_U /) {
$state = $ERRORS{'CRITICAL'};