summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-03-31 09:32:47 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2008-03-31 09:32:47 +0000
commit071b58c920b201b630b94669c92aceb252808ec8 (patch)
tree276e64ddb9a03868b024a57696f2c64e2ba65cab
parenta010e0f9b8134529188ebc771104fdfdb137692a (diff)
Fix device
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@326 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 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 . ": - ";