-
Problem report
-
Resolution: Duplicate
-
Trivial
-
None
-
6.0.19
-
RHEL 8.x
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
- duplicates
-
ZBX-22771 Jsonpath returns unpredictable type for large numbers
- Closed