[collectd] [mini-patch] Timeout for missing values

Andrés J. Díaz ajdiaz at connectical.com
Thu Dec 17 23:21:14 CET 2009


Hi!

I attach here a patch which adds Timeout option in configuration file.
This option is global (i.e. at the same level as Interval) and it's
the max number of intervals that a package can be missed before a
missing notification would be raised. By dafault collectd wait 2
intervals and it's a hardcoded value AFAIK, if plugin cannot get data
for more than 2 intervals, then (if it's an interesting value),
collectd send a missing notification. Setting Timeout to an high value
you can be more tolerant with that missing.

It's usefull on large networks. In my case, the company LAN is
distributed on distant locations and sometimes (due to network issues)
UDP packages are lost, I use the Timeout to be more tolerant to this
networks fails. For example setting Internval to 10 and Timeout to 6,
a  missing notification will be raised only if none data was reported
in last 60s.

I hope that things explained well enough, and (who knows!) maybe this
could be usefull to anybody ;)

Regards,
  Andrés
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timeout.patch
Type: application/octet-stream
Size: 1891 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20091217/c3fe2bdc/attachment.obj 


More information about the collectd mailing list