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

Something is wrong with JSONpath preprocessing, it seemingly uses path values from a different preprocessed item

    XMLWordPrintable

Details

    • Problem report
    • Resolution: Fixed
    • Major
    • None
    • 4.2.1
    • Server (S)
    • Vanilla CentOS 7, Zabbix server 4.2.1 compiled with patch reversal to prevent HTTP checks crash
    • Team C

    Description

      I see something is terribly wrong with JSONpath preprocessing. We preprocess different values in dependent items, extracting a specific path. The item becomes unsupported, and the error message is very strange.

      Preprocessing failed for: {"0":{"32":{"0":{"drive's position":"DiskGroup: 0, Span: 0, Arm: 0","enclosure position":"1","dev...
      1. Failed: cannot extract value from json by path "$[0][32][0]["predictive failure count"]": object not found starting with json path: "trnk30233"][1]"

      The thing is, the original path to be extracted is [0][32][0] which is perfectly present in the object. But error message shows path of "trnk30233"][1], which is the partial JSON path from a different item residing on different host. Seems like some stale pointer or memory area is erroneously reused in JSONpath preprocessing.

      I don't know how to debug this further, any suggestions are highly appreciated.

      Attachments

        Issue Links

          Activity

            People

              zabbix.support Zabbix Support Team
              Alex/AT Alexey Asemov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: