[collectd] perl plugin: callback only for one of the thread

Andreas Schuldei andreas at schuldei.org
Mon Feb 27 21:09:57 CET 2017


Hi,

my perl plugin queries two hosts, and two threads are created, with their
respective configurations from the config files.

However, by virtue of print statements, i can tell that only one of the
threads receive read callbacks from collectd.

the init and configuration callbacks were called for both threads.

how can that be? the second thread is still around (which is know because I
fork a child process for device management purposes and that works and
moves data in the background).

how can that be? how can i see what collectd thinks of the status of the
two threads? is there an internal status that i can access or log? or can i
do clever strace magic?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20170227/cc82712d/attachment.html>


More information about the collectd mailing list