Hi everyone
I'm learning and have deployed Zabbix.
But now I have Draytek Vigor 2960 routers, I want to get the WAN IP address information of the WAN1 and WAN2 interfaces. But the is ipAdEntAddr changes constantly when shutting down the router, so getting the Index Value is very difficult and filtering the desired data.
I have used the snmpbulkget command to get the table, so is there any way in Zabbix to get the IP of two WAN interfaces, at least the whole table in the snmpbulkget command.
[root@zabbix ~]# snmpbulkget -v 2c -c public 192.168.3.1 RFC1213-MIB::ipAdEntAddr
IP-MIB::ipAdEntAddr.113.176.64.96 = IpAddress: 113.176.64.96
IP-MIB::ipAdEntAddr.116.109.11.78 = IpAddress: 116.109.11.78
IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1
IP-MIB::ipAdEntAddr.192.168.3.1 = IpAddress: 192.168.3.1
IP-MIB::ipAdEntIfIndex.113.176.64.96 = INTEGER: 76
IP-MIB::ipAdEntIfIndex.116.109.11.78 = INTEGER: 88
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.192.168.3.1 = INTEGER: 75
IP-MIB::ipAdEntNetMask.113.176.64.96 = IpAddress: 255.255.255.255
IP-MIB::ipAdEntNetMask.116.109.11.78 = IpAddress: 255.255.255.255
[root@zabbix ~]#
I'm learning and have deployed Zabbix.
But now I have Draytek Vigor 2960 routers, I want to get the WAN IP address information of the WAN1 and WAN2 interfaces. But the is ipAdEntAddr changes constantly when shutting down the router, so getting the Index Value is very difficult and filtering the desired data.
I have used the snmpbulkget command to get the table, so is there any way in Zabbix to get the IP of two WAN interfaces, at least the whole table in the snmpbulkget command.
[root@zabbix ~]# snmpbulkget -v 2c -c public 192.168.3.1 RFC1213-MIB::ipAdEntAddr
IP-MIB::ipAdEntAddr.113.176.64.96 = IpAddress: 113.176.64.96
IP-MIB::ipAdEntAddr.116.109.11.78 = IpAddress: 116.109.11.78
IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1
IP-MIB::ipAdEntAddr.192.168.3.1 = IpAddress: 192.168.3.1
IP-MIB::ipAdEntIfIndex.113.176.64.96 = INTEGER: 76
IP-MIB::ipAdEntIfIndex.116.109.11.78 = INTEGER: 88
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.192.168.3.1 = INTEGER: 75
IP-MIB::ipAdEntNetMask.113.176.64.96 = IpAddress: 255.255.255.255
IP-MIB::ipAdEntNetMask.116.109.11.78 = IpAddress: 255.255.255.255
[root@zabbix ~]#
Comment