Hello
On a Raspberry pi, zigbee2mqtt is sending the results to a local mosquitto instance and zabbix-agent 2 is running with active checks enabled.
On the zabbix server interface, a master item has been created for the Raspberry pi:
- name: zigbee-cgr
- type: Zabbix agent (active)
- key: mqtt.get["","zigbee2mqtt/zigbee-cgr/#"]
- no preprocessing
When I asked for previous values, I can results like
2025-11-17 16:41:58 {"zigbee2mqtt/zigbee-cgr":"{"humidity":48.95,"linkquality":224,"t e mperature":22.17}"}
A dependant item has been created:
- name: Temperature [C]
- type: Dependant Item
- Key: temperature
- Type of information float
- Master item: zigbee-cgr
- Preprocessing: JSONPath $.temperature
Preprocessing failed for: {"zigbee2mqtt/zigbee-cgr":"{"humidity":49.39,"linkquality":232,"t e mperature":21.93}"}
1. Failed: cannot extract value from json by path "$.temperature": no data matches the specified path
I have found another post about MQTT but it wasn't using mosqutto. I also read Ivo_Schooneman_Feeding_Zabbix_with_MQTT_data.pdf without understanding what was broken in my setup.
What should I do to fix it ?
On a Raspberry pi, zigbee2mqtt is sending the results to a local mosquitto instance and zabbix-agent 2 is running with active checks enabled.
On the zabbix server interface, a master item has been created for the Raspberry pi:
- name: zigbee-cgr
- type: Zabbix agent (active)
- key: mqtt.get["","zigbee2mqtt/zigbee-cgr/#"]
- no preprocessing
When I asked for previous values, I can results like
2025-11-17 16:41:58 {"zigbee2mqtt/zigbee-cgr":"{"humidity":48.95,"linkquality":224,"t e mperature":22.17}"}
A dependant item has been created:
- name: Temperature [C]
- type: Dependant Item
- Key: temperature
- Type of information float
- Master item: zigbee-cgr
- Preprocessing: JSONPath $.temperature
Preprocessing failed for: {"zigbee2mqtt/zigbee-cgr":"{"humidity":49.39,"linkquality":232,"t e mperature":21.93}"}
1. Failed: cannot extract value from json by path "$.temperature": no data matches the specified path
I have found another post about MQTT but it wasn't using mosqutto. I also read Ivo_Schooneman_Feeding_Zabbix_with_MQTT_data.pdf without understanding what was broken in my setup.
What should I do to fix it ?
Comment