LinuxProbe 发表于 2021-1-12 20:44:44

部署Nethogs监控软件


NetHogs是一个开源的命令行工具(类似于Linux的top命令),用来按进程或程序实时统计网络带宽使用率。
https://www.linuxprobe.com/wp-content/uploads/2020/06/333.png
环境:CentOS Linux release 7.4.1708 (Core)
ip:172.16.1.16安装
安装依赖包
# yum install libpcap libpcap-devel epel-release -y安装epel源
# yum install epel-release -y安装Nethogs
#yum install nethogs -y运行测试
查看版本
# nethogs -V version 0.8.5直接执行nethogs界面如下
root@localhost ~]# nethogshttps://www.linuxprobe.com/wp-content/uploads/2020/06/1-1.png监控ens33 带宽
nethogs 后面直接加网卡名称可以监控该网卡root@localhost ~]# nethogs ens33https://www.linuxprobe.com/wp-content/uploads/2020/06/2-1.png3秒刷新一次数据
ethogs 加-d参数指定多长时间刷新一次root@localhost ~]# nethogs -d 3https://www.linuxprobe.com/wp-content/uploads/2020/06/3-1.png
Nethogs就是这样使用。
页: [1]
查看完整版本: 部署Nethogs监控软件