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

Zabbix server crashes with JSONPath preprocessing

XMLWordPrintable

    • Team C
    • 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.

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

              Created:
              Updated:
              Resolved: