#1107640 network plugin gives up too early if network is not yet up

Package:
collectd
Source:
collectd
Description:
statistics collection and monitoring daemon
Submitter:
Simon Richter
Date:
2025-06-11 04:29:01 UTC
Severity:
normal
Tags:
#1107640#5
Date:
2025-06-11 04:27:14 UTC
From:
To:
Hi,

I use collectd on various machines to get telemetry to a central server,
and they all use the network plugin.

Telemetry collection starts before the network is up, which makes sense,
but this means that initially, the network plugin fails to resolve the
server address, and does not retry until the configured ResolveInterval
time.

Lowering that number causes a lot of unnecessary DNS traffic, so that is
not a sensible option, neither is making collectd startup dependent on
network availability.

There should be a separate config option to allow a shorter retry time
after a lookup failure. Also, ideally the ResolveInterval should be the TTL
of the received record.

   Simon