mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
prefix fieldnames in config too
This commit is contained in:
parent
99df8a0ed1
commit
cd70960d1e
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
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) {
|
for my $host (@hosts) {
|
||||||
my $clean = clean_fieldname($host);
|
my $clean = clean_fieldname($host);
|
||||||
|
$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("\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");
|
print("graph_info Number of times this host went down during \${graph_period}\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 '_');
|
||||||
print("$clean.type ABSOLUTE\n");
|
print("$clean.type ABSOLUTE\n");
|
||||||
print("$clean.label $host\n");
|
print("$clean.label $host\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue