[collectd] Hit counter in threshold

Andrés J. Díaz ajdiaz at connectical.com
Fri Jul 3 11:33:20 CEST 2009


I've attached a patch to add hit counter to thresholds, that is, each
time when threhsold raised, then an internal hit counter is
incremented, when the value of the counter raise a specific value
setted in configuration, then the notification is generated and
counter is reset. Here are an example of threshold configuration with
hit conter:

  <Plugin load>
    <Type load>
       WarninMax 1
       Hits 3

In this example the notification will be generated when load value is
greater than 1 for 3 intervals.

Here are two patches, the first one adds hit feature to the collectd
cached and the second one use hits in thresholds,

Of course comments and suggestions are welcome :)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: hits-cache.patch
Type: text/x-patch
Size: 2839 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090703/7767e7ec/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hits-threshold.patch
Type: text/x-patch
Size: 2626 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090703/7767e7ec/attachment-0001.bin 

More information about the collectd mailing list