Re: [collectd] plugin not unloaded if init function fails

2018-10-25 Thread Ruben Kerkhof
On Wed, Oct 24, 2018 at 6:15 PM, Oleg Rosowiecki wrote: > I've been testing a simple write plugin that captures values from a specific > read plugin and stores them in a predefined location on the file system. > > The init function of my plugin failed and returned 1 to indicate failure. > The log

Re: [collectd] plugin not unloaded if init function fails

2018-10-24 Thread Pavel
Hi, Oleg. Unfortunately, I found '/* FIXME: Unload _all_ functions */' comment in file 'src/daemon/plugin.c' at function 'plugin_init_all()'. As fast solution, you may to call 'plugin_unregister_write()' yourself. Regards, Pavel. On Wed, 24 Oct 2018 18:15:42 +0200 Oleg Rosowiecki wrote

[collectd] plugin not unloaded if init function fails

2018-10-24 Thread Oleg Rosowiecki
I've been testing a simple write plugin that captures values from a specific read plugin and stores them in a predefined location on the file system. The init function of my plugin failed and returned 1 to indicate failure. The log indicates that collectd noticed this: collectd[2704]: Initializat