Posts

Showing posts with the label vnstat

Traffic Monitor: vnStat

vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s). 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. Installation It's pretty easy to install vnStat, just run the following command in your console (for CentOS), and it is done. yum -y install vnstat Create vnStat database Before create vnStat database, make sure which network interface you want to monitor, take eth0 for example. vnstat -u -i eth0 It's done, and enjoy vnStat. Command Manual vnstat -h Show traffic statistics on a hourly basis for the last 24 hours. vnstat -d Show traffic statistics on a daily basis for the last 30 days. vnstat -m Show traffic statistics on a monthly basis for the last 12 months. vnstat -l Display current transfer rate for the selected inter...