Writing of collectd role #28
|
@ -10,7 +10,6 @@ collectd_interval: "300"
|
|||
|
||||
# exec plugin
|
||||
|
||||
collectd_plugin_exec: false # Set to true only if one of the exec plugins below is also set to true
|
||||
collectd_plugin_exec_interval: "{{ collectd_interval }}"
|
||||
collectd_plugin_exec_ifq_drops: false
|
||||
collectd_plugin_exec_dns_stats: false # Based on unbound
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
file:
|
||||
path: /usr/local/share/collectd/scripts
|
||||
state: directory
|
||||
when: collectd_plugin_exec
|
||||
when: collectd_plugin_exec_ifq_drops or collectd_plugin_exec_dns_stats
|
||||
tags:
|
||||
- collectd
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LoadPlugin syslog
|
|||
LogLevel warning
|
||||
</Plugin>
|
||||
|
||||
{% if collectd_plugin_exec is sameas true %}
|
||||
{% if (collectd_plugin_exec_ifq_drops is sameas true) or (collectd_plugin_exec_dns_stats is sameas true) %}
|
||||
<LoadPlugin exec>
|
||||
Interval {{ collectd_plugin_exec_interval }}
|
||||
</LoadPlugin>
|
||||
|
|
Loading…
Reference in a new issue