Ad Widget

Collapse

Long values of OID {#SNMPINDEX} for SNMP Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hullan00
    Junior Member
    • Mar 2014
    • 1

    #1

    Long values of OID {#SNMPINDEX} for SNMP Discovery

    Hi,

    I have created a SNMP Discovery that looks like this:

    discovery[{#SNMPVALUE},1.3.6.1.4.1.14823.2.2.1.5.2.1.4.1.3] (New syntax since Zabbix 3.0)

    When doing a walk the output looks like this:

    SNMPv2-SMI::enterprises.14823.2.2.1.5.2.1.4.1.19.0.11.134 .188.231.156 = INTEGER: 1
    SNMPv2-SMI::enterprises.14823.2.2.1.5.2.1.4.1.19.0.11.134 .237.38.160 = INTEGER: 1
    SNMPv2-SMI::enterprises.14823.2.2.1.5.2.1.4.1.19.108.243. 127.203.33.38 = INTEGER: 1
    SNMPv2-SMI::enterprises.14823.2.2.1.5.2.1.4.1.19.172.163. 30.197.22.16 = INTEGER: 1
    SNMPv2-SMI::enterprises.14823.2.2.1.5.2.1.4.1.19.172.163. 30.197.22.142 = INTEGER: 1
    SNMPv2-SMI::enterprises.14823.2.2.1.5.2.1.4.1.19.172.163. 30.197.22.144 = INTEGER: 1
    SNMPv2-SMI::enterprises.14823.2.2.1.5.2.1.4.1.19.172.163. 30.197.75.128 = INTEGER: 1

    Means that my {#SNMPINDEX} should be in the form 172.163.30.197.75.128 for row 7 and the {#SNMPVALUE} should be 1.

    I have logging enabled in the zabbix_server.conf but when I look in the zabbix_server.log it looks like I do not receive any index or any value. For snmp discoverys that is working I can see the index and the value in the log. When I build a item prototype for my discovery I get the error message that it could not create the items. Of course this is because I do not get any index and the the keys are not unique.

    Anyone who has a working snmp discovery when you have the index on the form in the example below. Or is this something that you know is not working at all?

    oid.x.y.z

    SOLVED: It works fine obviously, I do not know what did the trick. I tried so many different approaches =)

    Regards
    Hullan00
    Last edited by Hullan00; 26-09-2016, 09:45.
Working...