View Full Version : Monitor you Broadband usage

April 8th, 2010, 09:16 PM
I was searching for a program that keep statistics about my data usage until i found this tools:


It a good tool for monitoring and keep track of data usage (Daily, Monthly & Yearly)

To install it :

sudo apt-get install knemo
Run the program from: Applications >> Internet >> KNemo

To allow recording statistics:
1- right click on KNemo tray icon & select Configure Knemo
2- Check Activate Statistics

April 8th, 2010, 09:58 PM
I simply use vnstat and the command
vnstat -dto give me the download and uploads per day for the last month. If I want to save the info as a file it is easy with the following script:-

vnstat -d > /tmp/$(date +%F-%T)-DLs
gedit /tmp/*DLs
Try it, you'll see what I mean. You don't have to use /tmp for the txt file if you want to keep it; you could put it in /home just as easily, but I did it this way so the file disappears on rebooting, but can be saved to /home very quickly.

Here's the output of my use of this system with a lot of the lines deleted for space saving.

eth0 / daily

day rx | tx | total
10.03. 38.95 MB | 4.69 MB | 43.64 MB
11.03. 1.05 GB | 49.91 MB | 1.10 GB %%%%%%%%%%%%:
12.03. 260.51 MB | 15.24 MB | 275.74 MB %%%
07.04. 142.68 MB | 8.43 MB | 151.11 MB %
08.04. 15.93 MB | 4.03 MB | 19.96 MB
estimated 16 MB | 4 MB | 20 MB

April 8th, 2010, 10:08 PM
Do you know of a tool that functions and displays like Dumeter or Networx in windows? I need that equivalent in realtime.

April 8th, 2010, 10:17 PM
i have installed vnstat:

sudo apt-get install vnstatafter that i change the command to be:

vnstat -i ppp0 -d > /tmp/$(date +%F-%T)-DLsbut it gave me this error:

Unable to read database "/var/lib/vnstat/ppp0".
ppp0: Not enough data available yet.

April 8th, 2010, 11:39 PM
That's because you only just installed it. Have a look at
man vnstat which shows all the options available to you. I also use some of those, but the vnstat -d is the most useful to me.

It will work as I showed you from the date of installation, but not backdated, I'm afraid.

April 8th, 2010, 11:41 PM
Do you know of a tool that functions and displays like Dumeter or Networx in windows? I need that equivalent in realtime.
Right click panel ->Add to panel ->Network Monitor.

May 5th, 2010, 02:59 AM
Tried KNemo on Lucid - and no joy. It downloaded well enough, but refuses to run.

December 14th, 2010, 01:36 AM
about ppp0

try this command :

vnstat -u -i ppp0

wait a while to collect some data , then try this command

vnstat -d

after that , you'll get something like that :

ppp0 / daily

day rx | tx | total | avg. rate
12/14/10 609 KiB | 73 KiB | 682 KiB | 2.74 kbit/s
estimated -- | -- | -- |

December 14th, 2010, 10:30 AM
Thansk zazlox (http://ubuntuforums.org/member.php?u=976197),

now vnstat is working well with me

February 19th, 2012, 06:36 AM
strangely when i type your command

vnstat -u -i ppp0

it say's Error: Unable create database backup "/var/lib/vnstat/.ppp0".

any clues....am too new to this ubuntu and am using ubuntu 11.10