Hi,

I am writing a perl module for collecting data.

These are my plugin registration calls:
=====
plugin_register(TYPE_READ, $plugin_name, 'my_read');
plugin_register(TYPE_CONFIG, $plugin_name, 'my_config');
plugin_register(TYPE_INIT, $plugin_name, 'my_init');
=====

When starting collectd I get in the logfile:
===========
Feb 22 16:52:42 lazarus collectd[28359]: perl: Found a configuration for
the "OneWireCtlr" plugin, but the plugin isn't loaded or didn't register a
configuration callback.
===========

I added some debug output to my_read, my_config and my_init, and surely,
the my_config function is never called - the other two are.

the configuration in collectd.conf looks like this:
=====
[... some more ...]
<Plugin perl>
           BaseName "Collectd::Plugins"
  LoadPlugin "OneWireCtlr"
  <Plugin OneWireCtlr>
     host "WIZ107SR-51908C.fritz.box"
<0F00000561159F28>
        type "temperature"
  name "Sicherungskasten"
       </0F00000561159F28>
  <F50000000F93691D_1>
type "counter"
name "Stromzähler Familie"
</F50000000F93691D_1>
  <F50000000F93691D_2>
type "counter"
name "Stromzähler Single"
</F50000000F93691D_2>
  </Plugin>
</Plugin>
=====

what can I do to make this work?
_______________________________________________
collectd mailing list
[email protected]
https://mailman.verplant.org/listinfo/collectd

Reply via email to