Friday, July 9, 2010

VNSTAT: Network Traffic Monitor for *nix Systems

Vnstat is a network stats software, an opensource project for *nix systems and can be downloaded from http://humdi.net/vnstat/. For more than a year I am using Vnstat and it works silently without using too much resources and gives required stats when it is needed.
In details, it is possible to see your network adapters' traffic data based on years, months, weeks, days, hours and even real time data flow rates, running vnstat at the background with a small system resource like 1mb ram.

Setup

cd /usr/local/src
wget http://humdi.net/vnstat/vnstat-1.10.tar.gz
tar zxvf vnstat-1.10.tar.gz
cd vnstat-1.10
make
make all
make install
vnstat -u -i eth0 #eth0 should be replaced by your network adapter
vi /etc/vnstat.conf #change eth0 in conf file with your network adapter
OK configuration fineshed, now it is time to setup startup script which can be downloaded from
/etc/init.d scripts for vnStat daemon
Some Commands
vnstat --help # I think this will be enough :)

No comments: