mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
fix syntax
This commit is contained in:
parent
f6f1b07a92
commit
e8da2ee518
1 changed files with 4 additions and 4 deletions
|
@ -75,7 +75,7 @@ while ( $content =~ /table\s*<([^>]*)>\s*{([^}]*)}/g) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($cmd eq 'config') {
|
if ($cmd eq 'config') {
|
||||||
print("multigraph relayd_avail\n\n");
|
print("multigraph relayd_avail\n");
|
||||||
print("graph_title Relayd host availability\n");
|
print("graph_title Relayd host availability\n");
|
||||||
print("graph_args --lower-limit 0\n");
|
print("graph_args --lower-limit 0\n");
|
||||||
print("graph_vlabel % availability\n");
|
print("graph_vlabel % availability\n");
|
||||||
|
@ -86,7 +86,7 @@ if ($cmd eq 'config') {
|
||||||
$clean = clean_fieldname('host'.$host) unless ($clean ne '_');
|
$clean = clean_fieldname('host'.$host) unless ($clean ne '_');
|
||||||
print("$clean.label $host\n");
|
print("$clean.label $host\n");
|
||||||
}
|
}
|
||||||
print("\nmultigraph relayd_incidents\n\n");
|
print("multigraph relayd_incidents\n");
|
||||||
print("graph_title Relayd host incidents\n");
|
print("graph_title Relayd host incidents\n");
|
||||||
print("graph_args --lower-limit 0\n");
|
print("graph_args --lower-limit 0\n");
|
||||||
print("graph_vlabel down incidents\n");
|
print("graph_vlabel down incidents\n");
|
||||||
|
@ -144,14 +144,14 @@ for my $host (@hosts) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print "multigraph relayd_avail\n\n";
|
print "multigraph relayd_avail\n";
|
||||||
for my $host (@hosts) {
|
for my $host (@hosts) {
|
||||||
my $clean = clean_fieldname($host);
|
my $clean = clean_fieldname($host);
|
||||||
$clean = clean_fieldname('host'.$host) unless ($clean ne '_');
|
$clean = clean_fieldname('host'.$host) unless ($clean ne '_');
|
||||||
print "$clean.value " . ($avail{$host} || 'NaN'). "\n";
|
print "$clean.value " . ($avail{$host} || 'NaN'). "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "\nmultigraph relayd_incidents\n\n";
|
print "multigraph relayd_incidents\n";
|
||||||
for my $host (@hosts) {
|
for my $host (@hosts) {
|
||||||
my $clean = clean_fieldname($host);
|
my $clean = clean_fieldname($host);
|
||||||
$clean = clean_fieldname('host'.$host) unless ($clean ne '_');
|
$clean = clean_fieldname('host'.$host) unless ($clean ne '_');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue