monitor link between uplinks

master
Niklas Yann Wettengel 7 years ago
parent a10985afe4
commit fe98873a15

@ -96,21 +96,21 @@
name: perl-lwp-protocol-https name: perl-lwp-protocol-https
state: present state: present
- name: enable munin plugins for network monitoring (1/8) - name: enable munin plugins for network monitoring (1/9)
file: file:
path: /etc/munin/plugins/if_{{ ansible_default_ipv4.interface }} path: /etc/munin/plugins/if_{{ ansible_default_ipv4.interface }}
src: /usr/lib/munin/plugins/if_ src: /usr/lib/munin/plugins/if_
state: link state: link
notify: restart munin-node notify: restart munin-node
- name: enable munin plugins for network monitoring (2/8) - name: enable munin plugins for network monitoring (2/9)
file: file:
path: /etc/munin/plugins/if_{{ ansible_default_ipv6.interface }} path: /etc/munin/plugins/if_{{ ansible_default_ipv6.interface }}
src: /usr/lib/munin/plugins/if_ src: /usr/lib/munin/plugins/if_
state: link state: link
notify: restart munin-node notify: restart munin-node
- name: enable munin plugins for network monitoring (3/8) - name: enable munin plugins for network monitoring (3/9)
file: file:
path: /etc/munin/plugins/if_{{ item[0] }}{{ item[1].name }} path: /etc/munin/plugins/if_{{ item[0] }}{{ item[1].name }}
src: /usr/lib/munin/plugins/if_ src: /usr/lib/munin/plugins/if_
@ -121,7 +121,7 @@
- "{{ sites }}" - "{{ sites }}"
when: "'fastd' in group_names" when: "'fastd' in group_names"
- name: enable munin plugins for network monitoring (4/8) - name: enable munin plugins for network monitoring (4/9)
file: file:
path: /etc/munin/plugins/if_bb{{ hostvars[item]['wireguard_bb_name'] }} path: /etc/munin/plugins/if_bb{{ hostvars[item]['wireguard_bb_name'] }}
src: /usr/lib/munin/plugins/if_ src: /usr/lib/munin/plugins/if_
@ -130,7 +130,7 @@
with_items: "{{ groups['uplink'] }}" with_items: "{{ groups['uplink'] }}"
when: "'fastd' in group_names" when: "'fastd' in group_names"
- name: enable munin plugins for network monitoring (5/8) - name: enable munin plugins for network monitoring (5/9)
file: file:
path: /etc/munin/plugins/if_bb{{ hostvars[item]['wireguard_bb_name'] }} path: /etc/munin/plugins/if_bb{{ hostvars[item]['wireguard_bb_name'] }}
src: /usr/lib/munin/plugins/if_ src: /usr/lib/munin/plugins/if_
@ -139,7 +139,7 @@
with_items: "{{ groups['fastd'] }}" with_items: "{{ groups['fastd'] }}"
when: "'uplink' in group_names" when: "'uplink' in group_names"
- name: enable munin plugins for network monitoring (6/8) - name: enable munin plugins for network monitoring (6/9)
file: file:
path: /etc/munin/plugins/if_bb{{ item.name }} path: /etc/munin/plugins/if_bb{{ item.name }}
src: /usr/lib/munin/plugins/if_ src: /usr/lib/munin/plugins/if_
@ -148,7 +148,16 @@
with_items: "{{ wireguard_bb_peers|default([]) }}" with_items: "{{ wireguard_bb_peers|default([]) }}"
when: "'uplink' in group_names" 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: file:
path: /etc/munin/plugins/if_{{ item.name }} path: /etc/munin/plugins/if_{{ item.name }}
src: /usr/lib/munin/plugins/if_ src: /usr/lib/munin/plugins/if_
@ -157,7 +166,7 @@
with_items: "{{ ffrl_peers }}" with_items: "{{ ffrl_peers }}"
when: "'ffrl_uplink' in group_names" 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: file:
path: /etc/munin/plugins/if_mullvad path: /etc/munin/plugins/if_mullvad
src: /usr/lib/munin/plugins/if_ src: /usr/lib/munin/plugins/if_

Loading…
Cancel
Save