[ZBX-21505] SNMP OID LLD Errors (SNMPINDEX truncated | no results at all) Created: 2022 Aug 23  Updated: 2023 Dec 22  Resolved: 2023 Dec 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 6.2.1
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Max R Assignee: Oleksii Zagorskyi
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ZABBIX 6.2.1 on Debian 5.10.136-1


Attachments: PNG File MIB_Browser.png     PNG File ZABBIX_setup.png     Text File snmpwalk.txt     Text File snmpwalk_on.txt    

 Description   

I tried to set up a LLD for SNMP OID discovery but ran into some errors that I am not able to explain. I have tried several discovery rules but none of them yield any valid results.

If use the rule

discovery[{#OPDATA},.1.3.6.1.4.1.55330.2.1]

then the LLD only gives me this:

[{"{#SNMPINDEX}":"","{#OPDATA}":"89.04985520048977"}] 

The SNMPVALUE (OPDATA here) corresponds to the last entry in the operationalTable (as can be seen in the attached snmpwalk.txt files) the SNMPINDEX is empty in this case.

Another interesting error occurs when I use this rule (MIB name is censored but has the same amount of chararcters)

discovery[{'OPDATA},XXXXXXXXXXXX::logger]

then the resulting SNMPINDEX parameters will be truncated like this (here are the last items in the search which should have "bzRuntime4" and "bzFuelRangeARange" as their SNMPINDEX values but come out as "me4" and "Range")

....., {"{#SNMPINDEX}":"me4.0.0","{#OPDATA}":"null"},{"{#SNMPINDEX}":"Range.0.0","{#OPDATA}":"89.04985520048977"}

 

As one can see in the attached screenshot of the MIB browser the OID ".1.3.6.1.4.1.55330.2.1" should point to the "operationalTable" which holds all the data.

At first I thought this might be a duplicate of ZBX-15989 but the SNMP entries are laid out differently in my case

Is there an issue with the layout of the entries on the side of the SNMP agent, is the configuration on the ZABBIX server wrong or is this a bug?



 Comments   
Comment by Oleksii Zagorskyi [ 2022 Aug 29 ]

OID .1.3.6.1.4.1.55330 is an unknown "SNMPv2-SMI::enterprises.55330" which might indicate that the device does not behave correctly.

For LLD rule you should use not table's OID, but some column's OID. It might be rowIndex, but it's more useful to use something else which might hold some name or so.
Looking on walk output, I do not see any "name-like" values, so you indeed could try the rowIndex OID for LLD rule.

For me it looks like there are many columns with only one row, with index "0.0"

This report doe nos look like a bug report, honestly.

Generated at Fri Jun 20 06:48:25 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.