安装最新版:
http://dag.wieers.com/home-made/dstat/dstat-0.7.2.tar.bz2
http://dag.wieers.com/home-made/dstat/#download
# rpm -qa | grep dstat (是否有旧版本)
dstat-0.6.7-1.el5.rf
# rpm -e dstat (有旧版本则先卸载)
# cd /tmp
# rz (上传安装包)
# tar jxvf dstat-0.7.2.tar.bz2 && cd dstat-0.7.2
# make install
# cd && which dstat
/usr/bin/dstat
dstat输出:
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
3 2 95 0 0 0|9019B 258k| 0 0 | 30B 11k|1544 1350
4 9 87 0 0 0| 0 176k| 130k 11k| 0 0 |1506 3720
4 5 91 0 0 0| 0 72k| 106k 19k| 0 0 |1642 2067
2 2 96 0 0 0| 0 688k| 109k 20k| 0 0 |1436 1252
4 6 90 0 0 0| 0 0 | 108k 13k| 0 0 |1689 2283
2 2 95 0 0 0| 0 984k| 89k 27k| 0 0 |1526 1617
3 3 93 0 0 0| 0 48k| 71k 15k| 0 0 |1545 1706
支持的相关插件
[root@typhoeus79 dstat-0.7.2]# dstat --list
internal:
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
/usr/share/dstat:
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