VnStat

VnStat
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 regardless of network traffic rate.

Installing vnstat on Linux

apt install vnstat

  1. To get basic stats of all network interfaces
    Screenshot-2022-04-08-at-05.26.10
  1. To monitor a specific interface
    Screenshot-2022-04-08-at-05.28.49
  1. To get the daily stats of an interface
    Screenshot-2022-04-08-at-05.31.34
  1. To get the hourly stats of an interface
    Screenshot-2022-04-08-at-05.33.36
  1. To display the monthly stats of a interface
    Screenshot-2022-04-08-at-05.34.53
  1. To save output to a XML file
    Screenshot-2022-04-08-at-05.38.06
  1. To calculate traffic on the current interface
    Screenshot-2022-04-08-at-05.41.35
  1. To display vnstat help
    Screenshot-2022-04-08-at-05.50.59
  1. Live monitoring
    Screenshot-2022-04-08-at-06.08.09

Features

  • quick and simple to install and get running
  • gathered statistics persists through system reboots
  • can monitor multiple interfaces at the same time
  • several output options
  • summary, 5 minute, hourly, daily, monthly, yearly, top days
  • optional png image output (using libgd)
  • data retention duration is fully user configurable on the fly
  • months can be configured to follow billing period
  • light, minimal resource usage
  • same low cpu usage regardless of traffic
  • can be used without root permissions
  • online color configuration editor
vnStat - a network traffic monitor for Linux and BSD
For more information please visit: