collectd/dhcpcount: set minimum timeout to 180s

This commit is contained in:
Astro 2021-02-19 16:01:43 +01:00
parent 2e392d7177
commit 62e0058832
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ LoadPlugin ping
</Plugin>
{%- elif plugin == 'dhcpcount' and conf %}
{%- set timeout = 60 %}
{%- set timeout = 180 %}
{%- for iface, ips in salt['grains.get']('ip_interfaces').items() %}
{%- set dhcp_conf = pillar['dhcp'].get(iface) %}
{%- if dhcp_conf and dhcp_conf.get('time') and dhcp_conf.get('time') > timeout %}