We're trying to use the official Hikvision camera template: https://git.zabbix.com/projects/ZBX/...at=release/5.4
This template fills the proxy logs with
This is clearly something to do with the preprocessing of the item hikvision_cam.get_info
Preprocessing:
- CHECK_NOT_SUPPORTED: </p><p>⛔️ON_FAIL: `CUSTOM_VALUE -> {"html":{"head":{"title":"Connection error"}}}`</p><p>-
XML_TO_JSON: ⛔️ON_FAIL: CUSTOM_VALUE -> {"html":{"head":{"title":"Connection error"}}}
From what I can see, "on fail" is setting the custom value as JSON, but the proxy is still trying to process the output as XML and failing.
This template fills the proxy logs with
Code:
noname.xml:1: noname.xml:1: parser parser error : Start tag expected, '<' not found
{"html":{"head":{"title":"Connection error"}}}
Preprocessing:
- CHECK_NOT_SUPPORTED: </p><p>⛔️ON_FAIL: `CUSTOM_VALUE -> {"html":{"head":{"title":"Connection error"}}}`</p><p>-
XML_TO_JSON: ⛔️ON_FAIL: CUSTOM_VALUE -> {"html":{"head":{"title":"Connection error"}}}
From what I can see, "on fail" is setting the custom value as JSON, but the proxy is still trying to process the output as XML and failing.
Comment