Merge branch 'resolveinterval'
This commit is contained in:
commit
c1872885c5
3 changed files with 9 additions and 6 deletions
|
@ -1,5 +0,0 @@
|
||||||
LoadPlugin network
|
|
||||||
|
|
||||||
<Plugin "network">
|
|
||||||
Server "log01"
|
|
||||||
</Plugin>
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
# install collectd-network config
|
# install collectd-network config
|
||||||
- name: /etc/collectd.d/network.conf
|
- name: /etc/collectd.d/network.conf
|
||||||
copy: src=network-client.conf dest=/etc/collectd.d/network.conf
|
template: src=network-client.conf.j2 dest=/etc/collectd.d/network.conf
|
||||||
tags:
|
tags:
|
||||||
- collectd
|
- collectd
|
||||||
notify:
|
notify:
|
||||||
|
|
8
roles/collectd/base/templates/network-client.conf.j2
Normal file
8
roles/collectd/base/templates/network-client.conf.j2
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
LoadPlugin network
|
||||||
|
|
||||||
|
<Plugin "network">
|
||||||
|
Server "log01"
|
||||||
|
{% if ansible_distribution_major_version != '6' %}
|
||||||
|
ResolveInterval 14400
|
||||||
|
{% endif %}
|
||||||
|
</Plugin>
|
Loading…
Add table
Add a link
Reference in a new issue