From 256709738d6a15b80715d91de4b7af55f1e3905e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Wed, 21 Mar 2012 15:42:33 -0400 Subject: [PATCH] fix backup value usage that broke when using clean values --- plugins/relayd/relayd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/relayd/relayd b/plugins/relayd/relayd index bfe4b66c..8f1e1147 100755 --- a/plugins/relayd/relayd +++ b/plugins/relayd/relayd @@ -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: $!";