An open-source tool to monitor network traffic for selected interfaces, tracking monthly, daily, and hourly bandwidth usage with kernel-provided interface statistics.
vnStat is an open-source network traffic monitor for Linux that keeps a log of network traffic for the selected interface(s). It uses the network interface statistics provided by the kernel to keep track of the monthly, daily and hourly bandwidth usage.
Some key features of vnStat include:
As vnStat uses the statistics provided by the kernel, it does not actually monitor the network traffic itself. This makes it very resource and hardware friendly. The data is stored in a database file, allowing historical information to be retained.
The web-based interface allows easy access to graphical statistics and bandwidth usage information in the browser. The command-line tools allow more advanced users to manipulate the database file or access the stats through scripts/automation.
Overall, vnStat is a great lightweight tool for tracking network usage statistics over time without imposing significant system resource needs.