[collectd] Lighttpd plugin

Florent eppo<span style="display: none;">.trailing-username</span>(a)<span style="display: none;">leading-domain.</span>darox.net
Mon Feb 12 14:54:23 CET 2007


I wrote a plugin to graph lighttpd statistics. Lighttpd already wrote a RRD file with its statistics in (requests/s, traffic in/out) and I wanted to use collectd to forward this RRD file to another server which hosts cacti to graph these values.

How it works:
- read function rrd_fetch a rrd file in the local filesystem and submit some values
- write function stores the transferred values in another RRD file

My plugin almost works, the only issue is the different step between the source RRD file (the lighttpd generated one: 60) and the destination RRD file (wrote by collectd on destination server: 10). That leads to different minimum or maximum values, but the average looks good. 

See attachment file if you want to take a look.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lighttpd.c
Type: application/octet-stream
Size: 3539 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20070212/a3a4b16e/lighttpd.obj

More information about the collectd mailing list