diff options
-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 . ": - "; |