File tree 2 files changed +25
-1
lines changed 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 215
215
when : not (host_is_zfs | default(false))
216
216
notify : restart munin-node
217
217
218
+ - name : remove custom munin monitoring plugins from munin-contrib, that don't take arguments, for non-virtual nor containers
219
+ file :
220
+ path : " /etc/munin/plugins/{{ item }}"
221
+ state : absent
222
+ become : true
223
+ with_items : " {{ non_virtual_non_container_custom_munin_plugins }}"
224
+ when : host_is_container | default(false) or host_is_virtual | default(false)
225
+ notify : restart munin-node
226
+
218
227
- name : remove custom munin monitoring plugins from munin-contrib, that don't take arguments, for non-containers
219
228
file :
220
229
path : " /etc/munin/plugins/{{ item }}"
316
325
with_items : " {{ custom_munin_plugins }}"
317
326
notify : restart munin-node
318
327
328
+ - name : install custom munin monitoring plugins from munin-contrib, that don't take arguments, for non-virtual nor containers
329
+ copy :
330
+ src : " monitoring/munin/{{ item }}"
331
+ dest : " /etc/munin/plugins/"
332
+ owner : root
333
+ group : root
334
+ mode : 0755
335
+ local_follow : true
336
+ become : true
337
+ with_items : " {{ non_virtual_non_container_custom_munin_plugins }}"
338
+ when : not (host_is_container | default(false) or host_is_virtual | default(false) )
339
+ notify : restart munin-node
340
+
319
341
- name : install custom munin monitoring plugins from munin-contrib, that don't take arguments, for non-containers
320
342
copy :
321
343
src : " monitoring/munin/{{ item }}"
Original file line number Diff line number Diff line change 79
79
- { src: 'zfsonlinux_stats_l2efficiency', dest: 'zfsonlinux_stats_' }
80
80
81
81
# From munin git repos and copied across to the machine:
82
- non_container_custom_munin_plugins :
82
+ non_virtual_non_container_custom_munin_plugins :
83
83
- cpuidle # actually the stats of the host (although of course you might care to correlate performance problems against host resources)
84
+
85
+ non_container_custom_munin_plugins :
84
86
- chrony_sourcestats # clock is locked to host
85
87
- chrony_status
86
88
- chrony
You can’t perform that action at this time.
0 commit comments