VNStat is a console-based network traffic monitor for Linux that keeps a log of network traffic for the nework interfaces. It uses the network interface statistics provided by the kernel as information source.
Install VNSTAT Bandwidth Monitoring Tool on Linux.
To Install vnstat on ubantu
To Install vnstat on Centos
To start monitoring eth0, do the following
Note: If you recently installed the vnStat, it will show the message as “eth0: Not sufficient data available still now.”. Wait for couple of hours after that try again.
Use vnstat –d for network traffic by day.
Use vnstat –h for hourly network traffic
User vnsta –m for monthly network traffic
Export data to excel and other database
Other use full options
vnstat –top10 :- Display Top 10 Traffic Days
vnstat -s (–short) :- Change the default vnstat output format
vnstat –iflist : To view all the available interfaces on your system
