web site traffic monitoring: part 2

I’m done with the first pass of traffic monitoring. The traffic page can show graps of web site traffic on port 80 for the current day, current week, previous week, current month, previous month, current year and previous year. Good enough for now.

web site traffic monitoring: part 1

Last weekend I wrote a simple program to store traffic statistics (packets and bytes for both input and output) for port 80 of my new web server. Actually, any pcap filter expression can be used, I just happen to only be tracking port 80 at the moment. I save data every 5 minutes.

This weekend I spent a little time writing an application using Wt to graph the traffic data. The graph works, but it needs some cleanup. In the process, I wound up making some changes to the Wt::Chart classes because it didn’t let me use the desired colors for axis labels, titles and legend text. I’ll have to check these changes into my repository so I can diff them and send a patch to the Wt author.

I now just need some utility classes and functions to allow graphing various time periods of interest.