mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
fix backup value usage that broke when using clean values
This commit is contained in:
parent
678f3ed8a9
commit
256709738d
1 changed files with 3 additions and 2 deletions
|
@ -156,8 +156,9 @@ for my $host (@hosts) {
|
||||||
open(my $status, "relayctl show summary|") or die "can't open relayctl: $!";
|
open(my $status, "relayctl show summary|") or die "can't open relayctl: $!";
|
||||||
while (<$status>) {
|
while (<$status>) {
|
||||||
if (/([\w\.]+)\s+(\d+\.\d+)%/) {
|
if (/([\w\.]+)\s+(\d+\.\d+)%/) {
|
||||||
print "found spare value: $2 for $1\n" if $Munin::Plugin::DEBUG;
|
my $h = clean_host($1);
|
||||||
$avail{$1} = $2 unless defined($avail{$1});
|
print "found spare value: $2 for $h\n" if $Munin::Plugin::DEBUG;
|
||||||
|
$avail{$h} = $2 unless defined($avail{$h});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close $status or die "can't close pipe: $!";
|
close $status or die "can't close pipe: $!";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue