From 071b58c920b201b630b94669c92aceb252808ec8 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 31 Mar 2008 09:32:47 +0000 Subject: Fix device git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@326 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- nagios-check-raid.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () { $line = $_; if ($line =~ /^(md.*) /) { - $device = $0; + $device = $1; } elsif( $line =~ / \[_|_\]|U_|_U /) { $state = $ERRORS{'CRITICAL'}; $msg = $msg . $device . ": - "; -- cgit v1.2.3