[collectd] collectd-ping: will not retry hostname lookup after
startup
Sebastian Harl
sh at tokkee.org
Thu Oct 26 22:38:45 CEST 2006
Hi,
> > Since the
> > removal from the linked list is somewhat tricky, I'd appreciate it if
> > someone could double-check the code..
Imho it's fine :-)
> Apparently the problem Simon has here is, that his resolv.conf is
> changed _after_ collectd has been started. As far as I know this is the
> libc's business and I am not to fiddle with it. I. e. it's the libc's
> responsibility to reread the file when it changes.
Well, as far as I could see from a small check using strace libc does handle
this correctly (by rereading /etc/resolv.conf any time getaddrinfo is called).
I guess the problem is that collectd (liboping) does not try to resolve the
hostname again after it has been added successfully. Simon, could you please
comment on that? However, I do not see any solution how to solve this
properly :-/
Cheers,
Sebastian
PS: The MySQL plugin suffers from the same problem that Simon was originally
addressing in his bug report. Imho this should be fixed as well.
--
Sebastian "tokkee" Harl
GnuPG-ID: 0x8501C7FC
http://tokkee.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20061026/4c228ed7/attachment.pgp
More information about the collectd
mailing list