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

Runtime error appears in discovered host's configuration, if macros were used in the host's prototype

XMLWordPrintable

    • Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), S24-W10/11, S24-W12/13
    • 1

      Steps to reproduce:

      1. Create LLD rule
      2. Create host prototype, which contains macros
      3. Discover one or multiple hosts, using created LLD rule
      4. Open configuration of discovered host
      5. Open Macros tab
      6. Switch between tabs Inherited and Host macros / Host macros

      Result:
      The runtime error appears when switching back to Host macros

      Undefined array key "value" [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CPartial->getOutput() → include() → CConfigFile->{closure}() in conf/zabbix.conf.php:89]
      Undefined array key "description" [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CPartial->getOutput() → include() → CConfigFile->{closure}() in conf/zabbix.conf.php:89]
      Undefined array key "type" [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CPartial->getOutput() → include() → CConfigFile->{closure}() in conf/zabbix.conf.php:89]
      

      See screenshot:

      Expected result
      No errors should appear. Macros, that are added via Host prototype should work as expected

            esekace Eliza Sekace
            ngogolevs Nikita Gogolevs
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: