[Nagiosplug-devel] [ nagiosplug-Bugs-1045506 ] check_linux_raid.pl errors
SourceForge.net
noreply at sourceforge.net
Sat Nov 20 14:45:13 CET 2004
Bugs item #1045506, was opened at 2004-10-12 08:28
Message generated for change (Comment added) made by mattkent
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1045506&group_id=29880
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: NOEL Sebastien (mib42)
>Assigned to: Matthew Kent (mattkent)
Summary: check_linux_raid.pl errors
Initial Comment:
check_linux_raid.pl always uses the last line of
"/proc/mdstat" for the status because there are no
break in the while
possible correction is :
while(<MDSTAT>) {
if ($found) {
if (/(\[[_U]+\])/) {
$status = $1;
last ; #<== for break the while
} elsif (/recovery = (.*?)\s/) {
$recovery = $1;
($finish) = /finish=(.*?min)/;
last ; # <== for break the while
}
} else {
if (/$ARGV[0]/) {
$found = 1;
if (/active/) {
$active = 1;
}
}
}
}
----------------------------------------------------------------------
>Comment By: Matthew Kent (mattkent)
Date: 2004-11-20 14:44
Message:
Logged In: YES
user_id=983566
Fixed in cvs HEAD. Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1045506&group_id=29880
More information about the Devel
mailing list