[ZBX-25235] NDR SNMPv2c checks fail after upgrade from 6.0.31 to 7.0.3: 'Invalid SNMP OID' Created: 2024 Sep 14  Updated: 2024 Sep 14  Resolved: 2024 Sep 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 7.0.3
Fix Version/s: None

Type: Patch request Priority: Trivial
Reporter: Galo Xucro Assignee: Zabbix Support Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 22.04
Zabbix 7.0.3


Attachments: PNG File image-2024-09-14-10-21-09-808.png     PNG File image-2024-09-14-10-21-30-814.png    
Issue Links:
Duplicate
is duplicated by ZBX-24995 Discovery: "Invalid SNMP OID: cannot ... Closed

 Description   

Description:

  1. I used to have many network discovery rules running perfectly in Zabbix 6.0.31, for example:

  1. After I performed an upgrade from 6.0.31 to 7.0.3, the network discovery rules that had SNMPv2c checks stopped working.

Result:
See screenshot...

See proxy's log file...

 

3868157:20240913:100104.810 [2] discovery_snmp() ip:10.193.6.252 port:161, key:SNMPv2-MIB::sysDescr.0 ret:-7
3868157:20240913:100104.811 In zbx_async_check_snmp() key:'SNMPv2-MIB::sysDescr.0' host:'' addr:'10.193.6.253'
3868157:20240913:100104.811 End of zbx_async_check_snmp():CONFIG_ERROR
3868157:20240913:100104.811 [2] discovery_snmp() ip:10.193.6.253 port:161, key:SNMPv2-MIB::sysDescr.0 ret:-7
3868157:20240913:100104.812 In zbx_async_check_snmp() key:'SNMPv2-MIB::sysDescr.0' host:'' addr:'10.193.6.254'
3868157:20240913:100104.812 End of zbx_async_check_snmp():CONFIG_ERROR
3868157:20240913:100104.812 [2] discovery_snmp() ip:10.193.6.254 port:161, key:SNMPv2-MIB::sysDescr.0 ret:-7
3868157:20240913:100104.813 [2] In discoverer_results_partrange_merge() src:253 dst:970
3868157:20240913:100104.813 [2] End of discoverer_results_partrange_merge() src:0 dst:1223
3868157:20240913:100104.813 [2] discovery_net_check_result_flush() results:0 saved:253 ret:0
3868157:20240913:100104.814 [2] In discovery_async_poller_destroy()
3868157:20240913:100104.814 [2] End of discovery_async_poller_destroy()

 

 

And then:

I managed to contour the issue by changing the symbolic OIDs to numeric ones:

  • SNMPv2-MIB::sysDescr.0   =>  .1.3.6.1.2.1.1.1.0
  • SNMPv2-MIB::sysName.0  =>  .1.3.6.1.2.1.1.5.0

There's nothing in the manual stating that numeric OIDs must be used in SNMP checks.

I'm guessing that in version 7.0.3, zbx_snmp_translate() is not being called where and when it should be.



 Comments   
Comment by Alexey Pustovalov [ 2024 Sep 14 ]

Duplicate of ZBX-24995.

Generated at Sat Apr 05 01:54:47 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.