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

    Details

    • Team:
      Team D
    • Sprint:
      Sprint 58 (Nov 2019), Sprint 59 (Dec 2019)
    • Story Points:
      0.25

      Description

      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:

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rlataria Roberts Lataria
              Reporter:
              solonkins Sergejs Olonkins
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: