Utility

vnStat – console-based network traffic monitor

vnStat is a console-based network traffic monitoring application that records bandwidth usage over time.

Unlike packet capture tools, vnStat obtains its measurements from network interface statistics maintained by the operating system kernel. This approach keeps resource consumption low and avoids the overhead associated with inspecting individual packets.

The software records traffic information in a database that can be queried from the command line. Users can examine historical upload and download totals, compare network usage over different periods and identify unusually busy days.

vnStat is particularly useful for servers, home networks and other systems where long-term bandwidth consumption matters more than detailed packet inspection.

It can monitor multiple interfaces and retain traffic statistics across system restarts. Its reporting facilities also make it useful for tracking data allowances and identifying changes in network usage patterns.

This is free and open source software.

Key Features

  • Records network interface traffic statistics continuously.
  • Uses kernel interface counters rather than capturing network packets.
  • Stores traffic measurements persistently across reboots.
  • Supports monitoring multiple network interfaces.
  • Reports incoming and outgoing traffic separately.
  • Provides five-minute, hourly, daily, monthly and yearly traffic summaries.
  • Displays top traffic days for identifying unusually high network usage.
  • Offers configurable data retention periods.
  • Can align monthly statistics with a custom billing period.
  • Provides estimated traffic totals based on recorded usage.
  • Supports live traffic monitoring from the command line.
  • Offers optional PNG image output for traffic reports.
  • Uses minimal CPU and memory resources.
  • Can collect most interface statistics without requiring root privileges.

Website: github.com/vergoh/vnstat
Support:
Developer: Teemu Toivola
License: GNU General Public License v2.0


Related Software

Network 'top' Tools
NetHogsGroups bandwidth by process
bandwhichShows network bandwidth usage by process and connection
NetWatchInteractive terminal monitor for traffic, connections and packets
IPTraf-ngFork of IPTraf
RustNetReal-time terminal monitor for connections and process traffic
vnStatLightweight monitor for long-term network traffic statistics
netshowProcess-aware terminal monitor for active network connections
iftopDisplays bandwidth usage on an interface by host
socktopRemote system monitor with a rich TUI
FlowReal-time terminal dashboard for upload and download speeds
bmonInteractive bandwidth monitor with live interface statistics
rdmatopTerminal monitor for RDMA traffic, devices and processes
ntapTerminal tool for live network monitoring and packet capture

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted