[collectd] [sjr@debian.org: Bug#393742: collectd-ping: will not retry hostname lookup after startup]

Sebastian Harl 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

Package: collectd-ping
Version: 3.10.1-4
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

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.

   Simon

[...]

----- 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?

Cheers,
Sebastian

-- 
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/20061018/c9390cae/attachment.pgp


More information about the collectd mailing list