[ZBX-22000] Discovery failure after Zabbix 6 upgrade Created: 2022 Nov 30  Updated: 2024 Apr 10  Resolved: 2022 Dec 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 6.0.11
Fix Version/s: 6.0.12rc2, 6.2.6rc2, 6.4.0beta5, 6.4 (plan)

Type: Problem report Priority: Blocker
Reporter: Evren Yurtesen Assignee: Andris Zeila
Resolution: Fixed Votes: 1
Labels: bug, filter, template
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-11-30-01-39-15-489.png     PNG File image-2022-11-30-01-48-46-975.png    
Issue Links:
Causes
caused by ZBX-21616 LLD macro existence check don't work ... Closed
Duplicate
is duplicated by ZBX-22083 filter_evaluate_and_or_andor() missin... Closed
Team: Team A
Sprint: Sprint 95 (Dec 2022)
Story Points: 1

 Description   

Steps to reproduce:

  1. Use HP iLO SNMP template with an HP server
  2. 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...

  1. "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:



 Comments   
Comment by Evren Yurtesen [ 2022 Nov 30 ]

Sorry, this was on version 6.0.11

Comment by Andris Zeila [ 2022 Dec 02 ]

Released ZBX-22000 in:

  • pre-6.0.12rc2 ea4679c5a05
  • pre-6.2.6rc2 1b562faa4d3
  • pre-6.4.0rc1 aa93bbda89e
Generated at Wed Jul 02 08:02:49 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.