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

Zabbix server crashes with JSONPath preprocessing

    XMLWordPrintable

    Details

    • Team:
      Team C
    • Sprint:
      Sprint 59 (Dec 2019), Sprint 60 (Jan 2020)
    • Story Points:
      1

      Description

      Steps to reproduce:

      1. Create item with JSON document data (e.g. wmi.getall["root\virtualization\v2","SELECT ElementName,Name,ProcessID,HealthState,NumberOfNumaNodes,OnTimeInMilliseconds,OperationalStatus,ReplicationHealth,ReplicationMode,ReplicationState FROM msvm_computersystem WHERE Caption = 'Virtual Machine'"]
      2. Create dependent item with preprocessing step with JSONPath contains .first().first() methods (e.g. $.[?(@.ElementName == "VMNAME")].OperationalStatus.first().first()

      Result:
      Because of OperationalStatus is a list we need to use double .first() to retrieve value. But Zabbix Server crashes while extracting it. Trace log attached.

        Attachments

          Activity

            People

            Assignee:
            atumilovics Andrejs Tumilovics
            Reporter:
            asand3r Khatsayuk Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: