Ad Widget

Collapse

snmpwalkget on Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tansybt
    Junior Member
    • Dec 2018
    • 1

    #1

    snmpwalkget on Zabbix

    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 ~]#
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    zabbix by default is using snmp bulk queries as long as it is probing SNMP v2 and v3.
    You can check setting of the using bulk queries in host interface settings.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    Working...