Firewall stats

Stealing the idea from Theory, I spent a little bit of time today hacking up some scripts to generate some nice graphs of my firewall statistics. The data is parsed out of ulog and fail2ban log files. Still could do with a bit of work, but overall I'm quite pleased with it.

I had originally planned on using the Google Charts API to draw all of the graphs, but it couldn't handle the pie charts; producing output with all of the labels cut off. Shame.

Code can be viewed here, and downloaded either at this tarball or by using darcs with darcs get http://darcs.orangesquash.org.uk/darcs/firewallgraphs/. darcs send any patches my way!

Edit: Fixed a couple of bugs that stopped it from working at all; now we actually have working scripts :(

Tags: , , ,

Leave a Reply