Centos 實用監控工具之一 dstat

dstat是一款很實用的實時監控小工具,它功能強大,操作簡單,集成參數衆多,它可以查看網絡,CPU使用情況,硬盤,內存等系統信息;


編譯安裝:

工具下載地址:wget http://dstat.sourcearchive.com/downloads/0.7.2-2/dstat_0.7.2.orig.tar.gz

yum安裝:

yum -y install dstat 


常用實例:

加入 dstat  -d參數可以顯示硬盤此時的讀read寫writ信息:


如果想查看網絡的使用情況可以使用參數dstat  -n:

-


使用dstat  -m 可以查看內存,包括正在使用資源,緩存資源,所剩資源:


dstat -s查看swap交換分區的使用情況以及剩餘情況:


也可以查看系統時間:dstat -t


dstat -c  查看CPU的使用信息:


當然,使用-a也可以顯示更多的信息


help:

  -c, --cpu              enable cpu stats
     -C 0,3,total           include cpu0, cpu3 and total
  -d, --disk             enable disk stats
     -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              enable memory stats
  -n, --net              enable network stats
     -N eth1,total          include eth1 and total
  -p, --proc             enable process stats
  -r, --io               enable io stats (I/O requests completed)
  -s, --swap             enable swap stats
     -S swap1,total         include swap1 and total
  -t, --time             enable time/date output
  -T, --epoch            enable time counter (seconds since epoch)
  -y, --sys              enable system stats


  --aio                  enable aio stats
  --fs, --filesystem     enable fs stats
  --ipc                  enable ipc stats
  --lock                 enable lock stats
  --raw                  enable raw stats
  --socket               enable socket stats
  --tcp                  enable tcp stats
  --udp                  enable udp stats
  --unix                 enable unix stats
  --vm                   enable vm stats


  --plugin-name          enable plugins by plugin name (see manual)
  --list                 list all available plugins


  -a, --all              equals -cdngy (default)
  -f, --full             automatically expand -C, -D, -I, -N and -S lists
  -v, --vmstat           equals -pmgdsc -D total

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章