From 4f2e1d7b8d21f1752b7d0c49f8e9ecf4fb3dd1d7 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Sat, 11 Sep 2021 14:56:47 +0200 Subject: munin wg peers --- roles/install_monitoring/tasks/install_munin.yml | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'roles/install_monitoring/tasks') 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 -- cgit v1.2.3-54-g00ecf