Ajout de la supervision Mikrotik
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
muninpkgs:
|
||||
- muninlite
|
||||
munin_need_reconfigure: False
|
||||
when: ansible_facts['distribution'] == "LEDE" or ansible_facts['distribution'] == "OpenWRT"
|
||||
when: ansible_facts['distribution'] == "LEDE" or ansible_facts['distribution'] == "OpenWRT" or ansible_facts['distribution'] == "OpenWrt"
|
||||
|
||||
- set_fact:
|
||||
muninpkgs:
|
||||
@@ -64,6 +64,27 @@
|
||||
- restart munin-node
|
||||
when: "'pgsqlservers' in group_names"
|
||||
|
||||
# For Munin servers
|
||||
- name: deploy mikrotik unitary scripts
|
||||
copy:
|
||||
src: "./files/{{ item.0 }}"
|
||||
dest: "/etc/munin/plugins/{{ item.0 }}{{ item.1.name }}"
|
||||
mode: 0755
|
||||
loop: "{{ mikrotik_unitary_scripts|product(mikrotik_hosts)|list }}"
|
||||
notify:
|
||||
- restart munin-node
|
||||
when: "'muninservers' in group_names"
|
||||
|
||||
- name: deploy mikrotik per iface scripts
|
||||
copy:
|
||||
src: "./files/{{ item.1 }}"
|
||||
dest: "/etc/munin/plugins/{{ item.1 }}{{ item.0.0.name }}_{{ item.0.1 }}"
|
||||
mode: 0755
|
||||
loop: "{{ mikrotik_hosts|subelements('ifaces')|product(mikrotik_periface_scripts) }}"
|
||||
notify:
|
||||
- restart munin-node
|
||||
when: "'muninservers' in group_names"
|
||||
|
||||
# for NUT (UPS) servers
|
||||
- name: "add specific nut value for UPS"
|
||||
file:
|
||||
|
Reference in New Issue
Block a user