Track traffic usage in Linux

We recommend installing a software on your server to keep track of how much bandwidth you are using. There are many open source solutions available one of them is vnStat.

vnStat:

vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface. It uses the network interface statistics provided by the kernel as information source. This means that vnStat won’t actually be sniffing any traffic and also ensures light use of system resources.

Install:

Ubuntu/ Debian:

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 install
vnstat -u -i eth0
chmod 700 /usr/bin/vnstat
chmod 700 /var/lib/vnstat/ -R

http://www.dotcomunderground.com/blogs/2010/03/05/install-vnstat-network-traffic-monitor-linux/

CentOS:

http://forums.serverbeach.com/showthread.php?7193-CentOS-Bandwidth-tool-vnstat-installation-walk-through

  • 127 Users Found This Useful
這篇文章有幫助嗎?

相關文章

Direct emailing

Direct email delivery is disabled on the network for server packaged ordered after 5/15/2012....

Check and open ports in CentOS / Fedora / Redhat

  If you want to open or close a port for a Linux firewall you have to edit the rules in the...

Get started with your Control Panel (Webmin/cPanel)

  Webmin: Webmin is disabled by default, you will have to enable it: - Access the server via...

Run File System Check in Linux

  # fsck fsck is used to check and optionally repair one or more Linux file systems....

How to restart Webmin

Here is a little helper if your Webmin does not respond. Just run this command from the...