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

JSON null is converted to "null"

XMLWordPrintable

    • S2401-2
    • 0.25

      Steps to reproduce:

      1. Create an item prototype that uses JSON path preprocessing to extract a field. This field can either be a JSON string or JSON null.
      2. Add a trigger prototype with the following expression: 
        length(last(/BackupPC/backuppc.host[{#HOST},error]))>0 
      1. Monitor the template via a Zabbix Proxy
      2. Since Zabbix Proxy 6.0.12 a JSON null is converted to the JSON string "null" causing the trigger to fire.

      Expected:

      • JSON null should not be converted to the string "null"

        1. Item Prototype.png
          Item Prototype.png
          19 kB
        2. Trigger Prototype.png
          Trigger Prototype.png
          15 kB
        3. Latest values.png
          Latest values.png
          19 kB
        4. Input data.png
          Input data.png
          29 kB

            wiper Andris Zeila
            hi0eeW7u FP
            Team A
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: