[Nagiosplug-devel] [ nagiosplug-Bugs-1045506 ] check_linux_raid.pl errors
SourceForge.net
noreply at sourceforge.net
Tue Oct 12 08:30:44 CEST 2004
Bugs item #1045506, was opened at 2004-10-12 15:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1045506&group_id=29880
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: NOEL Sebastien (mib42)
Assigned to: Nobody/Anonymous (nobody)
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;
}
}
}
}
----------------------------------------------------------------------
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