summaryrefslogtreecommitdiff
path: root/roles/monitoring
diff options
context:
space:
mode:
authoruvok cheetah2024-04-07 14:02:52 +0200
committeruvok cheetah2024-04-07 14:02:52 +0200
commit429d80ecffbeaa788af477eaa8a328c284c8aeed (patch)
tree60a147d0b10587c3ebbd2f1dc6efb916b20838ec /roles/monitoring
parent95ba2359a009b979fb5962bea42943a2a39c935a (diff)
Add multiping to monitoring
Diffstat (limited to 'roles/monitoring')
-rw-r--r--roles/monitoring/tasks/main.yml17
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