mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-23 10:53:03 -04:00
Fix always reading status from the last line (1045506)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@917 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
b4a3db443b
commit
ef71bc5f57
1 changed files with 3 additions and 1 deletions
|
|
@ -36,9 +36,11 @@ while(<MDSTAT>) {
|
|||
if ($found) {
|
||||
if (/(\[[_U]+\])/) {
|
||||
$status = $1;
|
||||
} elsif (/recovery = (.*?)\s/) {
|
||||
last;
|
||||
} elsif (/recovery = (.*?)\s/) {
|
||||
$recovery = $1;
|
||||
($finish) = /finish=(.*?min)/;
|
||||
last;
|
||||
}
|
||||
} else {
|
||||
if (/$ARGV[0]/) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue