summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-03-31 09:36:27 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2008-03-31 09:36:27 +0000
commit0cf2ee54340052de708c7c40ce12733103ca4617 (patch)
tree665ba486badcaee093e9664d1907f4fe6e51f2e8
parent071b58c920b201b630b94669c92aceb252808ec8 (diff)
Fix device
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@327 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-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'};