-
Type:
Problem report
-
Resolution: Won't fix
-
Priority:
Trivial
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Hello! In my case I'm use Zabbix 7.0.8 and not find anything about this in release notes for 7.0.9 and 7.0.10.
Steps to reproduce:
- Create LLD which have input data
[{"temperature-sensor-health":"healthy","fan-health":"healthy","blade-health":"healthy","flash-health":"healthy","power-supply-health":"healthy","core-blade-health":"healthy","marginal-port-health":"healthy","faulty-port-health":"healthy","error-port-health":"healthy","control-processor-health":"healthy","ha-health":"healthy","marginal-sfp-health":"healthy","missing-sfp-health":"healthy","wwn-health":"healthy","switch-health":"healthy","airflow-mismatch-health":"healthy","expired-certificate-health":"healthy","trusted-fos-certificate-health":"healthy"}]
- Add JSONPath preprocessng "$..[*]~"
- Test it like this (by adding step 2 for test data:

- Remove all preprocessing steps and add LLD macros like {#ID} with same path "$..[*]~".
- Create item protorype with key like test{#ID}.
- Run discovery.
Result:
Cannot create item "test["[\"temperature-sensor-health\",\"fan-health\",\"blade-health\",\"flash-health\",\"power-supply-health\",\"core-blade-health\",\"marginal-port-health\",\"faulty-port-health\",\"error-port-health\",\"control-processor-health\",\"ha-health\",\"marginal-sfp-health\",\"missing-sfp-health\",\"switch-health\",\"wwn-health\",\"airflow-mismatch-health\",\"expired-certificate-health\",\"trusted-fos-certificate-health\"]"]": value "["temperature-sensor-health","fan-health","blade-health","flash-health","power-supply-health","core-blade-health","marginal-p..." is too long.
Expected:
Creating item prototypes for each array member with it value.