I have an issue where running a discovery on our HP hardware and it now is failing. This has been working for years. When looking at the host configuration > discovery there is the red "!" and it says "Value should be a JSON object." Every server, new or old, is now failing where it used to work. Our script or agent config hasn't changed.
I figured there might be a problem with the script on the server and it was returning errors or something incorrect, so I ran zabbix_get to see what was being returned from the discovery, and it is in fact good JSON. I used an online validation tool to verify, as well as compared it to other servers that still appear to be working (but have been running longer, so their discovery has already completed once).
Any thoughts of what else to check, or is this some bug in the JSON parser? Running Zabbix 3.2.4 with Zabbix Proxies also 3.2.4, all on Ubuntu 16.10 with PHP7.
This is an example of the discovery that shows as failed:
I figured there might be a problem with the script on the server and it was returning errors or something incorrect, so I ran zabbix_get to see what was being returned from the discovery, and it is in fact good JSON. I used an online validation tool to verify, as well as compared it to other servers that still appear to be working (but have been running longer, so their discovery has already completed once).
Any thoughts of what else to check, or is this some bug in the JSON parser? Running Zabbix 3.2.4 with Zabbix Proxies also 3.2.4, all on Ubuntu 16.10 with PHP7.
This is an example of the discovery that shows as failed:
Code:
zabbix_get -s server1 -k hp.discovery[fans]
{
"data":
[
{
"{#FANNO}":"1_2",
"{#FANNAME}":"System board 1",
"{#FANTYPE}":"System board",
"{#FANVARSPEED}":"True"
},
{
"{#FANNO}":"3_2",
"{#FANNAME}":"System board 2",
"{#FANTYPE}":"System board",
"{#FANVARSPEED}":"True"
},
{
"{#FANNO}":"4_2",
"{#FANNAME}":"System board 3",
"{#FANTYPE}":"System board",
"{#FANVARSPEED}":"True"
}
]
}
Comment