[collectd] [firstname.lastname@example.org: Bug#393742: collectd-ping: will not
retry hostname lookup after startup]
sh at tokkee.org
Wed Oct 18 14:28:25 CEST 2006
----- Forwarded message from Simon Richter <sjr at debian.org> -----
From: Simon Richter <sjr at debian.org>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Date: Tue, 17 Oct 2006 18:49:52 +0200
Subject: Bug#393742: collectd-ping: will not retry hostname lookup after startup
X-Mailer: reportbug 3.30
-----BEGIN PGP SIGNED MESSAGE-----
as collectd starts early, the network is not yet fully configured at
this point (autonegotiation still running etc.). So name lookup does not
properly work at this point. The ping plugin then gives up and does not
record any data.
Using the IP address would not solve the problem, as the data is
recorded in a file that is named after the reverse lookup for the IP
address, so it would be named differently depending on whether lookup is
available or not.
----- End forwarded message -----
I think the best way to resolve this issue is to retry opening the socket
for some period of time while increasing the delay between retries. However,
this would block collectd. Thus, the call to ping_add_host should be moved to
the ping plugin's init function (which Imho is the correct place anyway) as it
is called after forking to the background.
What do you think?
Sebastian "tokkee" Harl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20061018/c9390cae/attachment.pgp
More information about the collectd