1、获取网卡信息
windows下进入cmd,输入“typeperf -qx | find "Network Interface" | find "Bytes" > C:\network.txt”然后会在c盘下生成 network.txt 文件,打开文件在其中可以搜索到Network Interface性能相关的参数,利用这些性能计数器路径就可以获取相关的性能值.(这个和监控iis类似)
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模板创建
4、检测结果:
时间: 2024-12-22 16:21:43