[collectd] How often does Collectd read resolv.conf?

Florian Forster octo at collectd.org
Sat May 30 19:55:11 CEST 2015


Hi Shorty,

On Fri, May 29, 2015 at 09:05:53PM +0200, Markus "Shorty" Uckelmann wrote:
> So back to it and Collectd wasn't able to resolve it's Graphite host.
> So even after a few hours it didn't re-read /etc/resolv.conf.

the write_graphite plugin will call getaddrinfo(3) on every connection
attempt. How the name resolution is done depends on the C library – on
many GNU/Linux systems DNS is one of multiple possibilities, for
example.

If /etc/resolv.conf is read, if it is re-read when modified and so on is
out of our control, unfortunately.

HTH, best regards,
—octo
-- 
collectd – The system statistics collection daemon
Website: http://collectd.org
Google+: http://collectd.org/+
GitHub:  https://github.com/collectd
Twitter: http://twitter.com/collectd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20150530/88c84e09/attachment.sig>


More information about the collectd mailing list