Zabbix server crashes with JSONPath preprocessing

XMLWordPrintable

    • Sprint 59 (Dec 2019), Sprint 60 (Jan 2020)
    • 1

      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.

        1. trace.log
          93 kB
          Khatsayuk Alexander

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

              Created:
              Updated:
              Resolved: