How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
  • How To: Monitor and log network traffic [Linux Only]
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Results 1 to 3 of 3
  1. #1

    Default How To: Monitor and log network traffic [Linux Only]

    What?
    The program is called vnStat and is a console based bandwidth monitoring tool. It doesn't take a look at what sites are being viewed or anything like that. All it does is take a look at
    internet traffic information that the kernel provides and logs it in a retrievable, readable format.

    Why?
    Knowing how much bandwidth you use can be both really useful and really interesting at the same time!



    How?
    Note: I am a user of #!Crunchbang, a Ubuntu based distro which in turn is based on Debian. As such, I will be using apt-get, but for other major distros, simply use the distro package manager (Arch: pacman, etc...)
    1) Login as root in a terminal
    Code:
    su -i
    2) Install vnStat
    Code:
    apt-get install vnstat
    3) Find the names of the network interfaces you'd like to monitor
    *The usual names are eth0 or eth1 for Ethernet and wlan0 for wireless
    Code:
    ifconfig -s
    4) For each interface you'd like to monitor, type this in (where **** stands for the name of the interface)
    Code:
    vnstat -u -i ****
    5) Congratulations! Installation is complete. Now all that's left to do is do some internet surfing (or downloading) and check back later.
    To check out the data that vnStat has collected, in a terminal, type:
    Code:
    vnstat
    to get a basic readout. To get some more information out of it, type:
    Code:
    vnstat --hours
    for a graph that shows hourly usage. Be sure to check man vnstat for many other options, including a daily view, weekly view, and even monthly!

    A Little Extra:
    For those of you who want some more out of this program, there are several frontends available, however I highly recommend this one that was made in PHP: vnStat PHP frontend
    Last edited by ZF; May 25th, 2009 at 06:57 PM.

  2. Advertisement
    To remove ads become VIP. Inquire about advertising here.
  3. #2

    Default

    ahh...I didn't know linux had commands that were similar to those of windows

  4. #3

    Default

    That's actually useful for the Linux box @ work. Thanks

Similar Threads

  1. Replies: 6
    Last Post: January 23rd, 2011, 04:52 PM
  2. How to close and make uTorrent invisible.
    By dj187 in forum Software
    Replies: 23
    Last Post: November 16th, 2009, 01:18 AM
  3. Replies: 7
    Last Post: November 8th, 2009, 02:36 PM
  4. Replies: 2
    Last Post: August 6th, 2009, 11:24 PM
  5. How to reputate and iGiver someone. (Images included)
    By aio_spammy in forum Site Tutorials
    Replies: 0
    Last Post: May 31st, 2009, 08:08 PM

Tags for this Thread

Posting Permissions

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