This patch adds a new transform to Devmon, called STATISTIC. It can be used to determine the minimum value, the maximum value, the average value or the sum of the values of a repeater-type OID. It can also be used to count the number of values of a repeater-type OID.
Add transform STATISTIC
Add transform statistic
A new version of the patch is uploaded. It is no longer required for statistic 'cnt' that the entries in a repeater-type OID contain a numeric value. This requirement remains for the other statistics. Moreover, the processing of statistic 'cnt' is completely separated from the processing of the other statistics.
I had actually been thinking about this fr a while, specifically for (say) monitoring processes, but in many cases the processes you want to monitor (e.g. memory use of apache, or number of instances of a process) have multiple instances.
I would like to merge this patch soon, however I prefer to commit documentation at the same time. Could you add a patch for docs/TEMPLATES that provides examples?
See e.g. r238: http://devmon.svn.sourceforge.net/viewvc/devmon?revision=238&view=revision
In the initial version of this patch, an extension to docs/TEMPLATES is included. Obviously I forgot to extract the documentation differences when submitting the second version of this patch. Sorry for that, I'm still learning to use svn.