[collectd] Bug#535787: collectd: powerdns monitoring hangs on the pdns socket (pdns 2.9.22)

Sebastian Harl sh at tokkee.org
Wed Aug 19 23:18:05 CEST 2009

Hi again,

On Sat, Jul 04, 2009 at 08:29:49PM -0600, thomas morgan wrote:
> There is some kind of incompatibility between collectd and powerdns
> 2.9.22. With powerdns support enabled in collectd, collectd connects
> to powerdns's unix socket. The connection hangs indefinitely.
> collectd will no longer even shutdown and must be kill -9'd. It render
> powerdns's control socket useless as well, so it can no longer be
> managed either (until collectd is killed). 
> Things work as expected with powerdns I tried collectd 4.6.2
> also, with the same problem.

On Mon, Jul 27, 2009 at 05:36:37PM -0700, Luke Heberling wrote:
> OK, two problems.
> Problem number one seems to have been introduced with the LocalSocket option. 
> In fact, that config value is ignored in favor of its key, the literal 
> "LocalSocket". So the plugin creates the socket as "LocalSocket", connects to 
> the pdns control socket and sends the data. When the pdns control socket 
> attempts to send data back, it finds no socket called "LocalSocket" as it's in 
> a different working directory.

Hrm … reading through the original bug report again, I think there's
another issue as well. Thomas, did you use the 'LocalSocket' config
option at all? Could you please provide your configuration? Since the
problem did not exist when using powerdns this issue seems to
be unrelated to that option.

Thomas, could you please provide the output for the following commands
(issued when collectd hangs):

 * lsof -p <pid of collectd>
 * lsof -p <pid of pdns>
 * strace -p <pid of collectd>
 * strace -p <pid of pdns>


Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090819/a8add810/attachment.pgp 

More information about the collectd mailing list