Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22000

Discovery failure after Zabbix 6 upgrade

XMLWordPrintable

    • Sprint 95 (Dec 2022)
    • 1

      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:

        1. image-2022-11-30-01-39-15-489.png
          25 kB
          Evren Yurtesen
        2. image-2022-11-30-01-48-46-975.png
          45 kB
          Evren Yurtesen

            wiper Andris Zeila
            yurtesen Evren Yurtesen
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: