首页 > 代码库 > zabbix基于SNMP 协议监控路由器

zabbix基于SNMP 协议监控路由器

zabbix基于SNMP 协议监控路由器

步骤

步骤超级方便。
1. 路由器上开启snmp
2. 确保外网能访问到
3. 用snmpwalk测试
4. 添加zabbix主机,SNMP interfaces中添加ip,去掉默认的zabbix agent,模块选择Template SNMP Interfaces

snmpwalk测试命令

[root@localhost init.d]# snmpwalk -v 2c -c public 192.168.1.253 1.3.6.1.2.1.2.2.1.10
IF-MIB::ifInOctets.1 = Counter32: 7515379
IF-MIB::ifInOctets.2 = Counter32: 746039364
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 1758657775
IF-MIB::ifInOctets.5 = Counter32: 0
IF-MIB::ifInOctets.9 = Counter32: 0
IF-MIB::ifInOctets.10 = Counter32: 0
IF-MIB::ifInOctets.11 = Counter32: 0
IF-MIB::ifInOctets.12 = Counter32: 0
IF-MIB::ifInOctets.13 = Counter32: 2188418602


zabbix基于SNMP 协议监控路由器