-
Patch request
-
Resolution: Duplicate
-
Trivial
-
None
-
7.0.3
-
None
-
Ubuntu 22.04
Zabbix 7.0.3
Description:
- I used to have many network discovery rules running perfectly in Zabbix 6.0.31, for example:
- 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.
- is duplicated by
-
ZBX-24995 Discovery: "Invalid SNMP OID: cannot parse parameter."
- Closed