vnStat is a console-based network traffic monitor that 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.
By default, traffic statistics are stored on a five minute level for the last 48 hours, on a hourly level for the last 4 days, on a daily level for the last 2 full months and on a yearly level forever. The data retention durations are fully user configurable. Total seen traffic and a top days listing is also provided. Optional png image output is available in systems with the gd library installed.
See the official webpage https://humdi.net/vnstat/ for additional details and output examples.
vnStat works best when installed. It's possible to either use the latest stable release or get the current development version from git.
Stable version
wget https://humdi.net/vnstat/vnstat-latest.tar.gz
- optional steps for verifying the file signature
wget https://humdi.net/vnstat/vnstat-latest.tar.gz.asc
gpg --keyserver pgp.mit.edu --recv-key 0xDAFE84E63D140114
gpg --verify vnstat-latest.tar.gz.asc vnstat-latest.tar.gz
- the signature is correct if the output shows "Good signature from Teemu Toivola"
tar zxvf vnstat-latest.tar.gz
cd vnstat-*
Development version
git clone https://github.com/vergoh/vnstat
cd vnstat
In both cases, continue with instructions from the INSTALL or INSTALL_BSD file depending on used operating system. Instructions for upgrading from a previous version are included in the UPGRADE file.
email: Teemu Toivola irc: Vergo (IRCNet) git: https://github.com/vergoh/vnstat
Bug reports, improvement ideas, feature requests and pull requests should be sent using the matching features on GitHub as those are harder to miss or forget.