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

Preprocessing JSONPATH of big number reported as "not suitable for value type"

XMLWordPrintable

      We noticed a strange behaviour during the conversion of the below JSON file. Zabbix is not able to correctly manage the number "2140549705728000" during a JSONPATH Preproc.

      Not Working JSON file ->

      {"total":2140549705728000,"remaining":674792364900352}

      Working JSON file ->

      {"total":2198585469108224,"remaining":885663916752896}

      JSONPath Preproc step: $.total

      We have tested on Zabbix 6.0.x and Zabbix 6.4.3 same error (attached screenshot).

      The problem it's related to the JSONPath value handling, we can workaround using a JavaScript Preproc like "return JSON.parse(value).total;"

      Thanks

            zabbix.dev Zabbix Development Team
            dimitri.bellini Dimitri Bellini
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: