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

JSON null is converted to "null"

    XMLWordPrintable

Details

    • Problem report
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 6.0.12
    • None
    • Proxy (P)
    • None

    Description

      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"

      Attachments

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

        Activity

          People

            zalex_ua Oleksii Zagorskyi
            hi0eeW7u FP
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: