diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/monitoring/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/monitoring/tasks/main.yml b/roles/monitoring/tasks/main.yml index 2b37910..daa2d05 100644 --- a/roles/monitoring/tasks/main.yml +++ b/roles/monitoring/tasks/main.yml @@ -4,3 +4,20 @@ name: - munin-node state: present +- name: Create ping plugin + ansible.builtin.file: + src: /usr/share/munin/plugins/multiping + dest: /etc/munin/plugins/multiping + owner: root + group: root + state: link +- name: Create ping config + copy: + dest: /etc/munin/plugin-conf.d/multiping + owner: root + group: root + mode: "0644" + content: | + [multiping] + env.host 1.1.1.1 + env.ping_args -c 2 |