Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


bandwidth monitoring (4 algorithms) alerting and graphing

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials
Author Message
Darxus



Joined: 24 Jan 2007
Posts: 2
Location: Boston Massachusetts

Posted: Wed Jan 24, 2007 10:46 pm    Post subject: bandwidth monitoring (4 algorithms) alerting and graphing  

http://www.chaosreigns.com/code/linodebw/

This script monitors your bandwidth usage 4 ways:
local: total monthly bandwidth usage estimate based on data from /proc/net/dev over the last three hours
month: total monthly bandwidth usage estimate based on linode xml over the current month
period: total monthly bandwidth usage estimate based on linode xml over the last three hours
used: actual total bandwidth used this month, from linode xml
If any of these goes over a threshold (percentage of your quota) specified by you, it emails you. All calculated rates are logged as gigabytes per month.

The url lists three files:
linodebw.pl - perl script, you need to edit three variables at the top.
linodebw.png - example output from my linode
linodebw.gnuplot - config file to graph the data with gnuplot, you'll need to edit the output and log paths.

I would appreciate feedback.

Original Linode XML announcement: http://www.linode.com/forums/viewtopic.php?t=776
Update: http://www.linode.com/forums/viewtopic.php?t=1558

Google searching turned up a previously created script by the same name, but since it appears to have vanished I re-used the name.
Back to top  
 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials
Page 1 of 1