介绍一个监控软件dstat

在监控方面,之前有了vmstat,iostat,sar等工具了,但如果想综合一点用的话, 
新发现了一个不错的监控工具dstat,下面简单介绍之: 
1 下载: 
   http://dag.wieers.com/rpm/packages/dstat/dstat-0.6.7-1.rh7.rf.noarch.rpm 

2 安装 

3  使用: 
    输入dstat后,会显示出cpu,disk,net,paging,system 
的情况,1秒1次,可以设置为每1分钟1次: 
   dstat -a 1 
4 每分钟监控一次: 
   date && dstat  -tclmdny 60 
5  Dstat options: 
  -c, --cpu              显示CPU情况 
     -C 0,3,total           include cpu0, cpu3 and total 
  -d, --disk             显示磁盘情况 
     -D total,hda           include hda and total 
  -g, --page             enable page stats 
  -i, --int              enable interrupt stats 
     -I 5,eth2              include int5 and interrupt used by eth2 
  -l, --load             enable load stats 
  -m, --mem              显示内存情况 
  -n, --net              显示网络情况 
     -N eth1,total          可以指定网络接口 
  -p, --proc             enable process stats 
  -s, --swap             显示swap情况 
     -S swap1,total         可以指定多个swap 
  -t, --time             enable time counter 
  -y, --sys              enable system stats 
  --ipc                  报告IPC消息队列和信号量的使用情况 
  --lock                 enable lock stats 
  --raw                  enable raw stats 
  --tcp                  enable tcp stats 
  --udp                  enable udp stats 
  --unix                 enable unix stats 

  -M stat1,stat2         enable external stats 
     --mods stat1,stat2 

  -a, --all              使用-cdngy 缺省的就是这样显示 
  -f, --full             使用 -C, -D, -I, -N and -S 显示 
  -v, --vmstat           使用-pmgdsc -D 显示 

  --integer              show integer values 
  --nocolor              disable colors (implies --noupdate) 
  --noheaders            只显示一次表头以后就不显示了,使用重定向写入文件时很有用 
  --noupdate             disable intermediate updates 
  --output file          写入到CVS文件中 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值