aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ansible/roles/munin/templates/munin.conf.j212
1 files changed, 8 insertions, 4 deletions
diff --git a/ansible/roles/munin/templates/munin.conf.j2 b/ansible/roles/munin/templates/munin.conf.j2
index ca51bde..bf97a57 100644
--- a/ansible/roles/munin/templates/munin.conf.j2
+++ b/ansible/roles/munin/templates/munin.conf.j2
@@ -104,10 +104,14 @@ timeout_fetch_all_nodes 240
# The value will be limited with timeout_fetch_all_nodes.
timeout_fetch_one_node 180
-# a simple host tree
-[{{ ansible_fqdn }}]
- address 127.0.0.1
- use_node_name yes
+{% for host in hostvars %}
+[{{ hostvars[host]['ansible_fqdn'] }}]
+ address {{ hostvars[host]['ansible_wg0']['ipv4']['address'] }}
+{% endfor %}
+
+# Aggregated totals
+[box.pydis.wtf;Totals]
+ update no
#
# A more complex example of a host tree