daily activity

Internet monitor: most recent 24 hours activity
stats

what is this?

Live monitoring of the network interface and display the most recent 24 hours' activity.

Written in awk and bash, using fly to drive gd to draw the chart. The netdraw tool snapshots network activity each five minutes and updates the scrolling image. Download the tarball (~12k).

the source and friends

readme
for the netdraw and friends project
crontab entries
for the five minute, hourly and daily processing
netdraw.conf
this configuration file is shared between the scripts
netsample
called each five minutes to sample the network interface and record rx and tx bytes transferred since the last sample, calls netdraw
netdrawdaysum
display most recent Rx and Tx data rates
netdrawmonsum
display this month's activity summary
netdraw
draws a new daily activity image
netdrawmon
called hourly from cron to draw a new monthly summary image
netdrawcopy
called each midnight from cron to take snapshot of the daily activity image, take end of month snapshot of the monthly summary and calls netdrawhtml
netdrawhtml
rewrite the html SSI include files
sample.shtml
sample html markup to display the images, save this file as filename.shtml and enable SSI in your web server, the page will then look something like this.
fly compile notes
compiling fly

download

Grab this tarball, it has the following files:

networkmonitor<timestamp>
|-- bin
|   |-- netdraw
|   |-- netdrawcopy
|   |-- netdrawdaysum
|   |-- netdrawhtml
|   |-- netdrawmon
|   |-- netdrawmonsum
|   `-- netsample
|-- etc
|   `-- netdraw.conf
|-- web
|   |-- netdrawday.ssi
|   |-- netdrawmon.ssi
|   `-- sample.shtml
|-- README
|-- crontab.txt
`-- flynotes.txt