15.系统监控工具

 glances命令:EPEL源
 glances [-bdehmnrsvyz1] [-B bind] [-c server] [-C conffile] [-p port] [-P password] [--password] [-t refresh] [-f file] [-o output]
 内建命令:
a Sort processes automatically l Show/hide logs
c Sort processes by CPU% b Bytes or bits for network I/O
m Sort processes by MEM% w Delete warning logs
p Sort processes by name x Delete warning and critical logs
i Sort processes by I/O rate 1 Global CPU or per -CPU stats
d Show/hide disk I/O stats h Show/hide this help screen
f Show/hide file system stats t View network I/O as combination
n Show/hide network stats u View cumulative network I/O
s Show/hide sensors stats q Quit (Esc and Ctrl-C also work)
y Show/hide hddtemp stats

 常用选项:
-b: 以Byte为单位显示网卡数据速率
-d: 关闭磁盘I/O模块
-f /path/to/somefile: 设定输入文件位置
-o {HTML|CSV}:输出格式
-m: 禁用mount模块
-n: 禁用网络模块
-t #: 延迟时间间隔
-1:每个CPU的相关数据单独显示

 C/S模式下运行glances命令
 服务器模式:
glances -s -B IPADDR
IPADDR: 指明监听的本机哪个地址
 客户端模式:
glances -c IPADDR
IPADDR:要连入的服务器端地址

https://www.cnblogs.com/Huangsh2017Come-on/p/7294247.html

猜你喜欢

转载自www.cnblogs.com/lqynkdcwy/p/9573631.html
今日推荐