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

Undefined offset when creating a Problems by severity widget with show = Totals that displays only problems with certain severities

XMLWordPrintable

    • Sprint 58 (Nov 2019), Sprint 59 (Dec 2019)
    • 0.25

      Problem description: Undefined offset errors are observed in the "Problems by severity" widget when it is created with "Show" set to "Totals" and when only certain severities are displayed on the widget - 2 errors per each filtered severity:

       Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:452]
      Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:454]
      

      Steps to reproduce:

      1. Navigate to Monitoring => Dashboards and open any dashboard
      2. Add a "Problems by severity" widget with the following parameters:
        "Severity" = select any severities but not all of them
        "Show" = Totals

      Result: The following errors are returned in the widget for each severity that was filtered out:

      Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:452]
      Undefined offset: 5 [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerWidgetProblemsBySvView->doAction() → getSystemStatusTotals() in include/blocks.inc.php:454]
      

      Expected: No errors should be displayed in the widget.

      Expected:

            rlataria Roberts Lataria (Inactive)
            solonkins Sergejs Olonkins
            Team D
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: