|
|
| Monitoring bandwidth |
|
|
|
| Written by Bart Dorlandt |
| Tuesday, 12 January 2010 14:40 |
|
I wanted to know how much bandwidth I use on my server. I found VnStat which could do this for me and could show it via a webpage. Here is the howto for VnStat and I copied it also to make sure it stays online. To have a frontend via a webpage you'll need vnStat PHP frontend Interested in how much bandwidth you are using? vnStat is a simple command line utility to track network traffic on a Linux computer. vnStat is easy to set up and use on Ubuntu, and works well on both server and desktop systems. Run these three commands to install vnStat and set up permissions so every user can run it:
You need to find the name of the network interface you want to monitor. Most of the time it will be called eth0, run ifconfig to check if you are not sure. Then run this command, replacing eth0 with the name of your network interface:
That command creates a cron job (scheduled task) that will run every few minutes and collect traffic data for vnStat. Check the collected data by running vnstat on a command line. It will bring up the daily usage information:
Database updated: Thu Aug 30 13:40:01 2007 Run vnstat -h to see an hourly graph:
eth0 13:40 vnStat has many more options as well. Run vnstat –help to more ways to look at the data. Also check out the screenshots section of the vnStat website for examples.
Set as favorite
Bookmark
Email This
Hits: 434 Trackback(0)
Comments (0)
![]() Write comment - Name & Email obligated
|
| Last Updated on Tuesday, 12 January 2010 14:44 |
| Related items: |
|---|
|




