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:
parent
99df8a0ed1
commit
cd70960d1e
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user