[collectd] register_plugin for a "personalized" read callback

Pavel V. pavel2000 at ngs.ru
Sun May 21 08:02:27 CEST 2017


Hi, Andreas.

> I am simplifying my perl plugin code (a lot). Of course i still run several
> different instances of the code, still, because i monitor several devices. 

> The somewhat magic code for creating a unique read callback stopped working.
> This is the current code, that give me the error
> Collectd::Plugins::OneWireCtlr::my_read_192_168_178_117 error: Undefined
> subroutine &Collectd::Plugins::OneWireCtlr::HASH called at (eval 16) line 1.

I think that can happen due to missing locking while use of shared variable from
multiple threads in my_read() . Is it that case is possible?


-- 
Regards,
 Pavel                          mailto:pavel2000 at ngs.ru




More information about the collectd mailing list