nethogs on CentOS

Introduction

nethogs is a free command-line system monitoring program that produces a frequently updated list of network connections.

By default connections are ordered by bandwidth usage, and only the "top" bandwidth consumers are shown.

The nethogs website gives the following description: "nethogs does for network usage what top(1) does for CPU usage.

It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts.

It is handy for answering the question "why is our ADSL link so slow?".

Installation

yum install -y nethogs

Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: ftp.funet.fi * epel: mirror.cspacehostings.com * extras: ftp.funet.fi * updates: ftp.funet.fi Resolving Dependencies --> Running transaction check ---> Package nethogs.x86_64 0:0.8.5-1.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: nethogs x86_64 0.8.5-1.el7 epel 38 k Transaction Summary =================================================================================================================================== Install 1 Package Total download size: 38 k Installed size: 71 k Downloading packages: nethogs-0.8.5-1.el7.x86_64.rpm | 38 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : nethogs-0.8.5-1.el7.x86_64 1/1 Verifying : nethogs-0.8.5-1.el7.x86_64 1/1 Installed: nethogs.x86_64 0:0.8.5-1.el7 Complete!

Example

nethogs -i enp0s10

nethogs CentOS www.aredel.com
nethogs on CentOS 7

Article author: Andrei Olegovich

Banner image