summaryrefslogtreecommitdiff
path: root/roles/install_monitoring/tasks/install_munin.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install_monitoring/tasks/install_munin.yml')
-rw-r--r--roles/install_monitoring/tasks/install_munin.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/install_monitoring/tasks/install_munin.yml b/roles/install_monitoring/tasks/install_munin.yml
index 1a35928..0a95622 100644
--- a/roles/install_monitoring/tasks/install_munin.yml
+++ b/roles/install_monitoring/tasks/install_munin.yml
@@ -57,6 +57,31 @@
notify: restart munin-node
when: "'fastd' in group_names"
+- name: copy wg peers plugin
+ copy:
+ src: munin/munin_wg_peers
+ dest: /usr/lib/munin/plugins/wg_peers_
+ mode: 0755
+ notify: restart munin-node
+ when: "'fastd' in group_names"
+
+- name: copy wg peers plugin config
+ copy:
+ src: munin/munin_wg_conf
+ dest: /etc/munin/plugin-conf.d/wg
+ mode: 0644
+ notify: restart munin-node
+ when: "'fastd' in group_names"
+
+- name: enable munin plugins for wg peers
+ file:
+ path: /etc/munin/plugins/wg_peers_{{ item.name }}
+ src: /usr/lib/munin/plugins/wg_peers_
+ state: link
+ with_items: "{{ sites }}"
+ notify: restart munin-node
+ when: "'fastd' in group_names"
+
- name: copy dhcp-pool plugin
copy:
src: munin/munin_dhcp_pool_plugin