radiorabe/rabe-zabbix

Value should be a JSON object

squarejester opened this issue · 7 comments

When using your script in Zabbix 3.4 it gets the following error: Value should be a JSON object." I don't think the output of your script produces a properly JSON formatted output anymore with the changes in LLD rules now in Zabbix 3.4. This seems to be an issue now with all your scripts, not just this one.

Could you check?

value should be a json object

Hi @squarejester, all our Zabbix templates and scripts were developed and tested against the current Zabbix LTS version (3.0). I haven't had the chance to test them against a newer version.

I don't think the output of your script produces a properly JSON formatted output anymore with the changes in LLD rules now in Zabbix 3.4.

Do you have a reference to a detailed description of the mentioned LLD change?

Are the required IPMI macros ({$HOST.IPMI.CONN}, {$HOST.IPMI.USER}, {$HOST.IPMI.PASS}) configured properly?

Could you please manually execute the ipmi-sensor-discovery.sh script under the same user which runs your Zabbix server/proxy (most likely zabbix) and post the output? Also have a look at the Zabbix and audit (SELinux) logs. The Sensor Discovery - Commands for debugging might also help.

I don't think the output of your script produces a properly JSON formatted output anymore with the changes in LLD rules now in Zabbix 3.4.

Do you have a reference to a detailed description of the mentioned LLD change?

https://www.zabbix.com/documentation/3.4/manual/discovery/low_level_discovery

I can't find your mentioned 3.0 -> 3.4 LLD changes within the page linked above, did I miss something?

I ran the script locally on the zabbix server and it says:
Line 7: syntax error near unexpected token ‘newline’ Line 7: ‘(DOCTYPE html)’

Whoops, why is there a HTML Doctype in the script? How did you download/install it in the first place? Please re-download/install the script from https://raw.githubusercontent.com/radiorabe/rabe-zabbix/master/ipmi/Sensor_Discovery/scripts/ipmi-sensor-discovery.sh

Please post the complete invocation of the script (including the parameters) and the working ipmi-sensors command (you might want to obfuscate the host's address and password, if required).

I'm closing this since it doesn't seem to describe an actual bug and the click-raw-to-download issue has been well documented in the new app readmes.