dstat -- 多功能系统资源监控工具

类似工具:vmstat, iostat and ifstat. Dstat


下载地址:http://pkgs.repoforge.org/dstat/


安装:

# rpm -ivh dstat-0.7.2-1.el6.rfx.noarch.rpm

warning: dstat-0.7.2-1.el6.rfx.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY

Preparing...                ########################################### [100%]

  1:dstat                  ########################################### [100%]

功能:

本身:

Possible internal stats are

             aio, cpu, cpu24, disk, disk24, disk24old, epoch, fs, int, int24, io, ipc, load, lock, mem, net, page, page24, proc, raw,

             socket, swap, swapold, sys, tcp, time, udp, unix, vm

插件:

battery, battery-remain, cpufreq, dbus, disk-tps, disk-util, dstat, dstat-cpu,dstat-ctxt, dstat-mem, fan, freespace, gpfs, gpfs-ops, helloworld, innodb-buffer, innodb-io, innodb-ops, lustre, memcache-hits, mysql-io, mysql-keys, mysql5-cmds, mysql5-conn,

mysql5-io, mysql5-keys, net-packets, nfs3, nfs3-ops, nfsd3, nfsd3-ops, ntp, postfix, power, proc-count, qmail, rpc, rpcd, sendmail, snooze, squid, test, thermal, top-bio, top-bio-adv, top-childwait, top-cpu, top-cpu-adv, top-cputime, top-cputime-avg, top-int,top-io, top-io-adv, top-latency, top-latency-avg, top-mem, top-oom, utmp, vm-memctl, vmk-hba, vmk-int, vmk-nic, vz-cpu, vz-io, vz-ubc, wifi

使用:

   语法 dstat [-afv] [options..] [delay [count]]

举例  

1 默认参数:-cdngy (-a)

151541929.png

Possible internal stats are

             aio, cpu, cpu24, disk, disk24, disk24old, epoch, fs, int, int24, io, ipc, load, lock, mem, net, page, page24, proc, raw,

             socket, swap, swapold, sys, tcp, time, udp, unix, vm

2 插件:

155902946.png

3 其他

--output filename

   输出至文件(CSV)

-cdlmnpsy

   1024×768的屏幕上正好全部显示

--noheaders            

   只显示一次表头以后就不显示了,使用重定向写入文件时很有用