Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25235

NDR SNMPv2c checks fail after upgrade from 6.0.31 to 7.0.3: 'Invalid SNMP OID'

XMLWordPrintable

    • Icon: Patch request Patch request
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 7.0.3
    • Proxy (P), Server (S)
    • None
    • Ubuntu 22.04
      Zabbix 7.0.3

      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.

            zabbix.support Zabbix Support Team
            galoxucro Galo Xucro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: