Archive for September, 2009

collectd + drraw.cgi - zoom into your graphs like you used to with cacti

Wednesday, September 16th, 2009

I fell in love with collectd and drraw.cgi (a front-end to collectd). This combination is great: Fast, simple and yet sufficient.

But there was one thing I missed in drraw that I loved in cacti: Zooming. (This is how it looks like in cacti)

So I went on and hacked it into drraw.cgi using jQuery. This is how it looks like:

drraw_zoom.png

Download the patch (6kb).

A note: For simplicity’s sake I just included the jQuery lib hosted at Google APIs. If this is a problem for you, just download a copy, put it on your webserver and adjust the line in the patched drraw.cgi.

Have fun with it! Comments and improvements are always welcome!