[collectd] Plug-in wait time

Sebastian Harl sh at tokkee.org
Mon Apr 6 18:46:27 CEST 2009


Hi Amit,

On Mon, Apr 06, 2009 at 12:35:02AM +0530, Amit Gupta wrote:
> It seems that the collectd plug-in's wait time to invoke the read
> callback function of any plugin keeps on increasing (doubles) if the
> plugin read function fails for some reason.

Right.

> Is there a way to configure the collectd (some kind of global option
> or a plugin specific option) to let it call the read callback function
> of a plugin after a fixed interval of time even if the read function
> fails (from the collectd's code, it doesn't seem possible though other
> than to hack the plugin to return a success value even if the read
> fails)

Right - that's not currently possible. This has come up just recently
(on IRC iirc) and the idea was to introduce a global option that allows
to specify the max. waiting interval (currently, this is hardcoded to
one day, i.e. 86400 seconds).

Do you want to give that a try and provide a patch? Global options are
defined and handled in configfile.c, while error handling of read
callbacks is handled in plugin.c:plugin_read_thread ...

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090406/30660d44/attachment.pgp 


More information about the collectd mailing list