[collectd] PATCH: add support for percentage computation to collectd-nagios

Fabian Linzberger e at lefant.net
Tue Nov 4 22:58:57 CET 2008


i am using collectd-nagios to check disk usage via nagios. doing this
you generally like to know when there is less than a certain
percentage of free space on a filesystem, not less than a certain
number of bytes.

the attached patch allows to compute the percentage of the second
checked value against the sum of the first and the second.

this way collectd-nagios can be used like this:

  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 on the root
filesystem of the host called localhost.

please give it your consideration,

fabian linzberger -- http://lefant.net/ -- http://debienna.at/
       - do yourself a favour: use and support free software!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-collectd-nagios-add-new-percentage-aggregate-func.patch
Type: application/octet-stream
Size: 2848 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20081104/091f5780/attachment.obj 

More information about the collectd mailing list