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

2015-06-05 Thread Kevin Burton
Yes. But only if you’re in C.. .python, java , etc don’t have access to res_init. On Fri, Jun 5, 2015 at 2:46 PM, Dan Fandrich wrote: > On Fri, Jun 05, 2015 at 11:38:05AM +0200, Markus "Shorty" Uckelmann wrote: > > Am 30.05.2015 um 19:55 schrieb Florian Forster: > > >Hi Shorty, > > > > Peace oc

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

2015-06-05 Thread Dan Fandrich
On Fri, Jun 05, 2015 at 11:38:05AM +0200, Markus "Shorty" Uckelmann wrote: > Am 30.05.2015 um 19:55 schrieb Florian Forster: > >Hi Shorty, > > Peace octo, > > Thanks for the explanation. > > >the write_graphite plugin will call getaddrinfo(3) on every connection > >attempt. How the name resoluti

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

2015-06-05 Thread Markus "Shorty" Uckelmann
Am 30.05.2015 um 19:55 schrieb Florian Forster: Hi Shorty, Peace octo, Thanks for the explanation. 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 possi

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

2015-05-30 Thread Florian Forster
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 atte

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

2015-05-29 Thread Kevin Burton
this is an issue with glibc, NOT with collectd. It’s not fun but most versions of glibc do not do resolv.conf reloading. I agree it’s not fun but this is a bug in glibc not collectd. Long story short, don’t ever change your DNS servers IPs.. otherwise it’s just no fun. On Fri, May 29, 2015 at 1

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

2015-05-29 Thread Markus "Shorty" Uckelmann
Hi all, It just happened that one of our servers had a wrong resolv.conf. We corrected this. A few hours later we saw that we had no metrics from Collectd from this server. 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