1
0
Fork 0
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:
Antoine Beaupré 2012-03-21 15:42:33 -04:00
parent 678f3ed8a9
commit 256709738d

View file

@ -156,8 +156,9 @@ for my $host (@hosts) {
open(my $status, "relayctl show summary|") or die "can't open relayctl: $!";
while (<$status>) {
if (/([\w\.]+)\s+(\d+\.\d+)%/) {
print "found spare value: $2 for $1\n" if $Munin::Plugin::DEBUG;
$avail{$1} = $2 unless defined($avail{$1});
my $h = clean_host($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: $!";