標籤:network traffic 監控網卡流量 typeperf
1、擷取網卡資訊
windows下進入cmd,輸入“typeperf -qx | find "Network Interface" | find "Bytes" > C:\network.txt”然後會在c盤下產生 network.txt 檔案,開啟檔案在其中可以搜尋到Network Interface效能相關的參數,利用這些效能計數器路徑就可以擷取相關的效能值.(這個和監控iis類似)
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/74/CA/wKioL1YpoSqQm7-qAAXdj1jGf_4994.jpg" title="a.png" alt="wKioL1YpoSqQm7-qAAXdj1jGf_4994.jpg" />
2、修改設定檔zabbix_agentd.conf
#NETWORK
PerfCounter = Neteth0INInto,"\Network Interface(Red Hat VirtIO Ethernet Adapter)\Bytes Received/sec",30
PerfCounter = Neteth0OutInto,"\Network Interface(Red Hat VirtIO Ethernet Adapter)\Bytes Sent/sec",30
PerfCounter = Neteth1InInto,"\Network Interface(Red Hat VirtIO Ethernet Adapter _2)\Bytes Received/sec",30
PerfCounter = Neteth1OutInto,"\Network Interface(Red Hat VirtIO Ethernet Adapter _2)\Bytes Sent/sec",30
3、zabbix模板建立
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/74/CA/wKioL1YpoT3TWucuAAJLiche82g278.jpg" title="b.png" alt="wKioL1YpoT3TWucuAAJLiche82g278.jpg" />
4、檢測結果:
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/74/CA/wKioL1YpoZiCcrpjAAXgZDX4-M4190.jpg" title="c.png" alt="wKioL1YpoZiCcrpjAAXgZDX4-M4190.jpg" />
本文出自 “人為刀俎我為魚肉” 部落格,請務必保留此出處http://heartbeats.blog.51cto.com/10780360/1705478
zabbix 監控windows的網卡流量