collectd-nagios: add new "percentage" aggregate function.
authorFabian Linzberger <e@lefant.net>
Mon, 3 Nov 2008 19:06:46 +0000 (20:06 +0100)
committerSebastian Harl <sh@tokkee.org>
Tue, 9 Dec 2008 11:39:40 +0000 (12:39 +0100)
commitd324b71f4a80712261490d2c98bcca22a147c6c8
tree0e6b20f8ff71f5852887c54169d6fec5853d6f2c
parentcd3a0c6f7928a34da21f670f627e8e8a21943546
collectd-nagios: add new "percentage" aggregate function.

the percentage aggregate function takes exactly two values. it
computes the percentage of the first value versus the sum of the first
and the second value. very useful for checking df values like:

sudo collectd-nagios -s /var/run/collectd-unixsock -H localhost -n df/df-root -d used -d free -g percentage -w 20: -c 10:

which will warn if there is less than 20% free space.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
src/collectd-nagios.c