[collectd] plugin not unloaded if init function fails

Ruben Kerkhof ruben at rubenkerkhof.com
Thu Oct 25 12:21:23 CEST 2018

On Wed, Oct 24, 2018 at 6:15 PM, Oleg Rosowiecki <orosowiecki at gmail.com> 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 indicates that collectd noticed this:
> collectd[2704]: Initialization of plugin 'writefile' failed with status 1.
> Plugin will be unloaded.
> collectd[2704]: plugin_unregister_read: No such read function: writefile
> The intention is to unload the plugin but this doesn't seem to be happening.
> collectd keeps calling my write callback forever. Could anyone explain why?
> I've tested this on version 5.6.0.

Can you try this on master, or at least on 5.8.1? 5.6.0 is quite old
and there have been fixes in this area.

Kind regards,


More information about the collectd mailing list