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

Luke Heberling collectd at c-ware.com
Tue Jul 28 02:36:37 CEST 2009


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.  Of course, this shouldn't cause collectd to 
hang. That's the second problem. The plugin's socket has no recv timeout. 
Since it was able to connect and send data successfully, it waits indefinitely 
for a response that's not coming.

Both problems are fixed in the attached patch, which I made against the squeeze 
debian source. I've tested the resulting package successfully in a lenny 
environment, both with and without a chrooted pdns_recursor.

Luke Heberling
-------------- next part --------------
A non-text attachment was scrubbed...
Name: powerdns.diff
Type: text/x-patch
Size: 1349 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090727/4deed589/attachment.bin 


More information about the collectd mailing list