-
Problem report
-
Resolution: Fixed
-
Blocker
-
6.0.11
-
Sprint 95 (Dec 2022)
-
1
Steps to reproduce:
- Use HP iLO SNMP template with an HP server
- Data returned from SNMP is:
[{"{#SNMPINDEX}":"0.1","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"11"},{"{#SNMPINDEX}":"0.2","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"6"},{"{#SNMPINDEX}":"0.3","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"6"},{"{#SNMPINDEX}":"0.6","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"7"},{"{#SNMPINDEX}":"0.10","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"7"},{"{#SNMPINDEX}":"0.12","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.14","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.15","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"11"},{"{#SNMPINDEX}":"0.16","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.17","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.18","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.19","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.20","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.21","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.22","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.23","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.24","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.25","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.26","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.27","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.29","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"5"},{"{#SNMPINDEX}":"0.31","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"5"},{"{#SNMPINDEX}":"0.33","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"5"},{"{#SNMPINDEX}":"0.35","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"5"},{"{#SNMPINDEX}":"0.41","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"3"},{"{#SNMPINDEX}":"0.42","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"10"},{"{#SNMPINDEX}":"0.43","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"10"},{"{#SNMPINDEX}":"0.44","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"10"},{"{#SNMPINDEX}":"0.45","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"10"},{"{#SNMPINDEX}":"0.46","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"10"},{"{#SNMPINDEX}":"0.47","{#SNMPVALUE}":"0","{#SENSOR_LOCALE}":"10"}]
Result:
See screenshot...
- "Temperature Discovery Ambient" discovery fails with error
Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".Cannot evaluate expression: unexpected token at ")".
Expected:
I expected the ambient temperature items to be found.
This happens with template which was in Zabbix 5 after upgrade.
I also tried to import HP iLO SNMP template from Zabbix 6 repository and there is same problem.
I even have tried Zabbix5 and Zabbix6 simultaneously against same HP server. It works in Zabbix5 and fails in Zabbix6
Note: Changing "Type of calculation" in filtes for this discovery item from "And/Or" to "And" seems to fix it. But this makes no sense because manual says:
And/Or - uses And with different macro names and Or with the same macro name;
So `And/Or` and `And` should do the same thing for this discovery item: