Ad Widget

Collapse

Low-level SNMP discovery with nonnumeric index

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hppt
    Junior Member
    • Jun 2014
    • 21

    #1

    Low-level SNMP discovery with nonnumeric index

    Hello!

    There's a hardware and MIBs. MIBs imported in to Zabbix
    SNMP have a table wcAccessPointTable and index for it - field with the MAC address (i.e. not a number)

    snmpwalk outputs the following:

    Code:
    linux-zaa5:~ # snmpwalk-v 2c-c public 192.168.1.230 WC7520-MIB::wcAccessPointMac
    WC7520-MIB::wcAccessPointMac.'. N.M.'.128 = STRING: 20:4e:7f:4d:9b:80
    WC7520-MIB::wcAccessPointMac.'. .*T.'.64 = STRING: 20:e5:2a:54:9d:40
    WC7520-MIB::wcAccessPointMac.'..!...'.0 = STRING: a0:21:b7:bd:18:0
    WC7520-MIB::wcAccessPointMac.'..!...'.128 = STRING: a0:21:b7:bd:18:80
    WC7520-MIB::wcAccessPointMac.'..!...'.0 = STRING: a0:21:b7:bd:19:0
    WC7520-MIB::wcAccessPointMac.'..!...'.0 = STRING: a0:21:b7:bd:1c:0
    WC7520-MIB::wcAccessPointMac.'..!...'.32 = STRING: a0:21:b7:bd:1c:20
    And if you look using SNMP Browser these OID:

    Code:
    wcAccessPointMac.6.32.78.127.77.155.128
    wcAccessPointMac.6.32.229.42.84.157.64
    wcAccessPointMac.6.160.33.183.189.24.0
    wcAccessPointMac.6.160.33.183.189.24.128
    wcAccessPointMac.6.160.33.183.189.25.0
    wcAccessPointMac.6.160.33.183.189.28.0
    wcAccessPointMac.6.160.33.183.189.28.32
    I.e. from somewhere takes 6, and after that there's a point MAC

    Zabbix try to read wcAccessPointMac.'. N.M.'.128 and fails.

    How to teach him to get a normal index? Or convert it
  • koopmant
    Junior Member
    • Jun 2014
    • 4

    #2
    Try this

    Hey,

    I do LLD of F5's with SNMP and they have the same non-numeric OIDs.

    I wrote a script which supports this. You can find it at https://www.zabbix.com/forum/showthread.php?t=45689

    Let us know if you have any problems.

    Tim

    Comment

    Working...