mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
properly escape value output
This commit is contained in:
parent
2fae403dd2
commit
f6f1b07a92
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user