[collectd] register_plugin for a "personalized" read callback

Andreas Schuldei andreas at schuldei.org
Sun May 21 12:43:19 CEST 2017


the problem was much simpler: it needed to be \$config_href, not
$config_href, because the $ needed to be escaped.

On Sun, May 21, 2017 at 8:02 AM Pavel V. <pavel2000 at ngs.ru> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20170521/302ea9a6/attachment.html>


More information about the collectd mailing list