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

Element is not removed and runtime error appears, if trigger used as element in sysmaps was removed by LLD

XMLWordPrintable

      Steps to reproduce:

      1. Open Monitoring -> Maps
      2. Create Sysmap
      3. Add element -> trigger, use discovered trigger
      4. Adjust discovery rule, so that trigger is removed on the next execution of LLD
      5. Execute LLD
      6. Open Map that was created in #1

      Result:
      Runtime error:

      Undefined array key 0 [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CScreenMap->get() → CMapHelper::get() → CMapHelper::resolveMapState() → CConfigFile->{closure}() in conf/zabbix.conf.php:89]
      Trying to access array offset on value of type null [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CScreenMap->get() → CMapHelper::get() → CMapHelper::resolveMapState() → CConfigFile->{closure}() in conf/zabbix.conf.php:89]
      

      Note: additional errors are appearing if built-in host macro is used as the label of the element, but most likely will be solved by fix of the initial issue.

      See screenshot (if macros present in the label):

      Expected:
      Element should be removed, no errors should occur.

            zabbix.dev Zabbix Development Team
            ngogolevs Nikita Gogolevs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: