您的位置:首页 > 运维架构 > Linux

centos 上安装监控流量软件

2016-09-17 22:05 459 查看
概述

ifstat工具是个网络接口监测工具,比较简单看网络流量

ifstat的安装使用:

wget http://distfiles.macports.org/ifstat/ifstat-1.1.tar.gz

tar xzvf ifstat-1.1.tar.gz

cd ifstat-1.1

./configure

make

make install

查看:

默认使用

#ifstat
eth0                eth1
KB/s in  KB/s out   KB/s in  KB/s out
0.07      0.20      0.00      0.00
0.07      0.15      0.58      0.00


默认ifstat不监控回环接口,显示的流量单位是KB。

 

监控所有网络接口

# ifstat -a
lo                 eth0                eth1
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.28      0.58      0.06      0.06
0.00      0.00      1.41      1.13      0.00      0.00
0.61      0.61      0.26      0.23      0.00      0.00


 

ifstat比较简单看网络流量概况。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: