diff --git a/plugins/relayd b/plugins/relayd index dd7e3359..2adaa5b9 100755 --- a/plugins/relayd +++ b/plugins/relayd @@ -146,10 +146,14 @@ for my $host (@hosts) { print "multigraph relayd_avail\n\n"; for my $host (@hosts) { - print "$host.value " . ($avail{$host} || 'NaN'). "\n"; + my $clean = clean_fieldname($host); + $clean = clean_fieldname('host'.$host) unless ($clean ne '_'); + print "$clean.value " . ($avail{$host} || 'NaN'). "\n"; } print "\nmultigraph relayd_incidents\n\n"; for my $host (@hosts) { - print "$host.value " . ($down{$host} || 0). "\n"; + my $clean = clean_fieldname($host); + $clean = clean_fieldname('host'.$host) unless ($clean ne '_'); + print "$clean.value " . ($down{$host} || 0). "\n"; }