Results 1 to 10 of 10

Thread: Monitor you Broadband usage

  1. #1
    Join Date
    Feb 2009
    Location
    Khartoum, Sudan
    Beans
    273
    Distro
    Ubuntu 14.04 Trusty Tahr

    Monitor you Broadband usage

    I was searching for a program that keep statistics about my data usage until i found this tools:

    KNemo

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

    To install it :
    Code:
    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
    Attached Images Attached Images

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Monitor you Broadband usage

    I simply use vnstat and the command
    Code:
    vnstat -d
    to 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:-
    Code:
    #!/bin/bash
    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.
    Code:
    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

  3. #3
    Join Date
    Dec 2007
    Location
    Middle of Nowhere
    Beans
    82
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Monitor you Broadband usage

    Do you know of a tool that functions and displays like Dumeter or Networx in windows? I need that equivalent in realtime.
    Attached Images Attached Images
    All answers are all replies, but not all replies are answers.

    Linux is not Windows

  4. #4
    Join Date
    Feb 2009
    Location
    Khartoum, Sudan
    Beans
    273
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Monitor you Broadband usage

    i have installed vnstat:

    Code:
    sudo apt-get install vnstat
    after that i change the command to be:
    Code:
    vnstat -i ppp0 -d > /tmp/$(date +%F-%T)-DLs
    but it gave me this error:
    Code:
    Error:
    Unable to read database "/var/lib/vnstat/ppp0".
     ppp0: Not enough data available yet.

  5. #5
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Monitor you Broadband usage

    That's because you only just installed it. Have a look at
    Code:
    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.

  6. #6
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Monitor you Broadband usage

    Quote Originally Posted by oracle2b View Post
    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.

  7. #7
    Join Date
    Apr 2009
    Location
    Caerdydd, Cymru DU
    Beans
    119
    Distro
    Ubuntu Mate 22.04 Jammy Jellyfish

    Re: Monitor you Broadband usage

    Tried KNemo on Lucid - and no joy. It downloaded well enough, but refuses to run.
    Nid yw Anarchiaeth am anrhefn a chwal, ond am Ryddid, Cyfrifoldeb a Threfn
    Anarchy isn't about chaos and disorder, it's about Freedom, Responsibility and Order.

  8. #8
    Join Date
    Dec 2009
    Location
    morocco
    Beans
    40
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Monitor you Broadband usage

    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 -- | -- | -- |
    r

  9. #9
    Join Date
    Feb 2009
    Location
    Khartoum, Sudan
    Beans
    273
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Monitor you Broadband usage

    Thansk zazlox,

    now vnstat is working well with me

  10. #10
    Join Date
    Jul 2011
    Beans
    8

    Re: Monitor you Broadband usage

    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

    Thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •