From cd70960d1e274838fc66e19d9ddf902be9dff4b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Fri, 9 Mar 2012 02:25:38 -0500 Subject: [PATCH] prefix fieldnames in config too --- plugins/relayd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/relayd b/plugins/relayd index b459ee2a..3a1e2ef9 100755 --- a/plugins/relayd +++ b/plugins/relayd @@ -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"); }