[collectd/base] re-resolve dns lookup after a few hours if it fails
see: https://github.com/collectd/collectd/pull/732 Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
e04c03e6a6
commit
c5ae02db25
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