summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2018-06-06 16:12:29 +0200
committerNiklas Yann Wettengel <niyawe@niyawe.de>2018-06-06 16:12:29 +0200
commitfe98873a15d25dd1a8a7b18f01e7cc1cf0e3bc1c (patch)
treeaca6ad7fc94b14c675e525474a4cf768010f3aca /roles
parenta10985afe4cdb9934157aacbe25c5d3f0ec6f027 (diff)
monitor link between uplinks
Diffstat (limited to 'roles')
-rw-r--r--roles/install_monitoring/tasks/install_munin.yml25
1 files changed, 17 insertions, 8 deletions
diff --git a/roles/install_monitoring/tasks/install_munin.yml b/roles/install_monitoring/tasks/install_munin.yml
index eeca3fe..7f09b2d 100644
--- a/roles/install_monitoring/tasks/install_munin.yml
+++ b/roles/install_monitoring/tasks/install_munin.yml
@@ -96,21 +96,21 @@
name: perl-lwp-protocol-https
state: present
-- name: enable munin plugins for network monitoring (1/8)
+- name: enable munin plugins for network monitoring (1/9)
file:
path: /etc/munin/plugins/if_{{ ansible_default_ipv4.interface }}
src: /usr/lib/munin/plugins/if_
state: link
notify: restart munin-node
-- name: enable munin plugins for network monitoring (2/8)
+- name: enable munin plugins for network monitoring (2/9)
file:
path: /etc/munin/plugins/if_{{ ansible_default_ipv6.interface }}
src: /usr/lib/munin/plugins/if_
state: link
notify: restart munin-node
-- name: enable munin plugins for network monitoring (3/8)
+- name: enable munin plugins for network monitoring (3/9)
file:
path: /etc/munin/plugins/if_{{ item[0] }}{{ item[1].name }}
src: /usr/lib/munin/plugins/if_
@@ -121,7 +121,7 @@
- "{{ sites }}"
when: "'fastd' in group_names"
-- name: enable munin plugins for network monitoring (4/8)
+- name: enable munin plugins for network monitoring (4/9)
file:
path: /etc/munin/plugins/if_bb{{ hostvars[item]['wireguard_bb_name'] }}
src: /usr/lib/munin/plugins/if_
@@ -130,7 +130,7 @@
with_items: "{{ groups['uplink'] }}"
when: "'fastd' in group_names"
-- name: enable munin plugins for network monitoring (5/8)
+- name: enable munin plugins for network monitoring (5/9)
file:
path: /etc/munin/plugins/if_bb{{ hostvars[item]['wireguard_bb_name'] }}
src: /usr/lib/munin/plugins/if_
@@ -139,7 +139,7 @@
with_items: "{{ groups['fastd'] }}"
when: "'uplink' in group_names"
-- name: enable munin plugins for network monitoring (6/8)
+- name: enable munin plugins for network monitoring (6/9)
file:
path: /etc/munin/plugins/if_bb{{ item.name }}
src: /usr/lib/munin/plugins/if_
@@ -148,7 +148,16 @@
with_items: "{{ wireguard_bb_peers|default([]) }}"
when: "'uplink' in group_names"
-- name: enable munin plugins for network monitoring (7/8)
+- name: enable munin plugins for network monitoring (7/9)
+ file:
+ path: /etc/munin/plugins/if_bb{{ hostvars[item]['wireguard_bb_name'] }}
+ src: /usr/lib/munin/plugins/if_
+ state: link
+ notify: restart munin-node
+ with_items: "{{ groups['uplink'] | difference([inventory_hostname]) }}"
+ when: "'uplink' in group_names"
+
+- name: enable munin plugins for network monitoring (8/9)
file:
path: /etc/munin/plugins/if_{{ item.name }}
src: /usr/lib/munin/plugins/if_
@@ -157,7 +166,7 @@
with_items: "{{ ffrl_peers }}"
when: "'ffrl_uplink' in group_names"
-- name: enable munin plugins for network monitoring (8/8)
+- name: enable munin plugins for network monitoring (9/9)
file:
path: /etc/munin/plugins/if_mullvad
src: /usr/lib/munin/plugins/if_