vnStat — Network Traffic Monitor


Written by Pavs on December 26th, 2007

vnStat is a network traffic monitor for Linux that keeps a log of daily network traffic for the selected interface(s). vnStat isn’t a packet sniffer. The traffic information is analyzed from the /proc filesystem. That way vnStat can be used even without root permissions. However, at least a 2.2 series kernel is required.

To create a database for vnstat type in vnstat -u -i interface (ie, eth1), after the database is created, which is the first thing to do after a fresh install of vnstat, allow some time for the database to populate with information. After some time just type in vnstat to get a summary of your daily traffic.

2007-12-26-031606_1280x800_scrot

vnstat –dumpdb will dump the whole database in a format that shold be easy to parse with most scripting langauge

2007-12-26-031737_1280x800_scrot

vnstat -h will show traffic for the last 24 hours.

2007-12-26-031934_1280x800_scrot

For more information about vnstat go to: http://humdi.net/vnstat/





Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word