2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

prefix fieldnames in config too

This commit is contained in:
Antoine Beaupré 2012-03-09 02:25:38 -05:00
parent 99df8a0ed1
commit cd70960d1e

View File

@ -85,6 +85,7 @@ if ($cmd eq 'config') {
print("graph_info Ratio of time when this host was up. This is provided by relayd itself (not averaged by this plugin)\n");
for my $host (@hosts) {
my $clean = clean_fieldname($host);
$clean = clean_fieldname('host'.$host) unless ($clean ne '_');
print("$clean.label $host\n");
}
print("\nmultigraph relayd_incidents\n\n");
@ -95,6 +96,7 @@ if ($cmd eq 'config') {
print("graph_info Number of times this host went down during \${graph_period}\n");
for my $host (@hosts) {
my $clean = clean_fieldname($host);
$clean = clean_fieldname('host'.$host) unless ($clean ne '_');
print("$clean.type ABSOLUTE\n");
print("$clean.label $host\n");
}