mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
properly escape value output
This commit is contained in:
parent
2fae403dd2
commit
f6f1b07a92
1 changed files with 6 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue