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: $!";