Deploying nethogs monitoring software

Time:2021-1-14

Nethogs is an open sourcecommandLine tool (similar toLinuxTop ofcommand), which is used to count the network bandwidth utilization rate in real time by process or program.

Deploying nethogs monitoring software
Environmental Science:CentOS Linux release 7.4.1708 (Core)
ip:172.16.1.16

install

Install dependency package

[[email protected] ~]# yum install libpcap libpcap-devel epel-release -y

Install EPEL source

[[email protected] ~]# yum install epel-release -y

Install nethogs

[[email protected] ~]# yum install nethogs -y

Run the test

View version

[[email protected] ~]# nethogs -V
version 0.8.5

The nethogs interface is as follows

[email protected] ~]# nethogs

Deploying nethogs monitoring software

Monitoring bandwidth

Nethogs is directly followed by the name of the network card to monitor the network card

[email protected] ~]# nethogs ens33

Deploying nethogs monitoring software

Refresh data every 3 seconds

Ethogs plus – D parameter specifies how often to refresh

[email protected] ~]# nethogs -d 3

Deploying nethogs monitoring software
This is how nethogs is used.