diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-03-31 09:32:47 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2008-03-31 09:32:47 +0000 |
commit | 071b58c920b201b630b94669c92aceb252808ec8 (patch) | |
tree | 276e64ddb9a03868b024a57696f2c64e2ba65cab | |
parent | a010e0f9b8134529188ebc771104fdfdb137692a (diff) |
Fix device
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@326 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | nagios-check-raid.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nagios-check-raid.pl b/nagios-check-raid.pl index 7919e26..c7f75fc 100755 --- a/nagios-check-raid.pl +++ b/nagios-check-raid.pl @@ -94,7 +94,7 @@ my $device = ''; while (<FH>) { $line = $_; if ($line =~ /^(md.*) /) { - $device = $0; + $device = $1; } elsif( $line =~ / \[_|_\]|U_|_U /) { $state = $ERRORS{'CRITICAL'}; $msg = $msg . $device . ": - "; |