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

NULL value in walk[] snmp item can break pre-processing

XMLWordPrintable

    • Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023)
    • 2

      When using SNMPWALK to JSON preprocessing step it breaks if we get an unexpected NULL anywhere before the OID's we're looking for:

      .1.3.6.1.2.1.10.7.2.1.15.1 = NULL
      .1.3.6.1.2.1.31.1.1.1.1.1 = STRING: wan1
      .1.3.6.1.2.1.31.1.1.1.1.2 = STRING: wan2
      

      I'm looking for OID .1.3.6.1.2.1.31.1.1.1.1 here, but error states that:

      no data was found
      

      At the same time, this works fine:

      .1.3.6.1.2.1.10.7.2.1.15.1 = null
      .1.3.6.1.2.1.31.1.1.1.1.1 = STRING: wan1
      .1.3.6.1.2.1.31.1.1.1.1.2 = STRING: wan2
      

      And also this works:

      .1.3.6.1.2.1.10.7.2.1.15.1 = STRING: NULL
      .1.3.6.1.2.1.31.1.1.1.1.1 = STRING: wan1
      .1.3.6.1.2.1.31.1.1.1.1.2 = STRING: wan2
      

      This can probably be considered incorrect output from the device, but still we should not break monitoring of anything else because of this.

      Probably related to: ZBX-22026

        1. screenshot-2.png
          screenshot-2.png
          50 kB
        2. screenshot-1.png
          screenshot-1.png
          173 kB
        3. oid-crash.gif
          oid-crash.gif
          440 kB

            wiper Andris Zeila
            zux Edgars Melveris
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: