zabbix 监控windows的网卡流量

1、获取网卡信息

windows下进入cmd,输入“typeperf -qx | find "Network Interface" | find "Bytes" > C:\network.txt”然后会在c盘下生成 network.txt 文件,打开文件在其中可以搜索到Network Interface性能相关的参数,利用这些性能计数器路径就可以获取相关的性能值.(这个和监控iis类似)

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模板创建

wKioL1YpoT3TWucuAAJLiche82g278.jpg

4、检测结果:

wKioL1YpoZiCcrpjAAXgZDX4-M4190.jpg


你可能感兴趣的:(NetWork,traffic,监控网卡流量,typeperf)