From 0cf2ee54340052de708c7c40ce12733103ca4617 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 31 Mar 2008 09:36:27 +0000 Subject: Fix device git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@327 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 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 () { $line = $_; - if ($line =~ /^(md.*) /) { + if ($line =~ /^(md\S*) /) { $device = $1; } elsif( $line =~ / \[_|_\]|U_|_U /) { $state = $ERRORS{'CRITICAL'}; -- cgit v1.2.3