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

Undefined index error when loading chart in latest data page having item values stored in Elesticsearch 7.7

    XMLWordPrintable

    Details

    • Team:
      Team B
    • Sprint:
      Sprint 66 (Jul 2020), Sprint 67 (Aug 2020)
    • Story Points:
      0.5

      Description

      Preconditions:

      Zabbix configured to store item values in Elasticsearch (I used unsigned numbers).

      Steps to reproduce:

      1. Create unsigned numeric item of type "Zabbix trapper".
      2. Send one or more valid values. Check latest data table view for particular host and item to be sure that values are stored.
      3. Switch to "View as: Graph" and check error log.

      Result:

      Undefined index: group_by_itemid [chart.php:147 -> CLineGraphDraw->draw() -> CLineGraphDraw->selectData() -> CHistoryManager->getGraphAggregationByWidth() -> CHistoryManager->getGraphAggregationByWidthFromElasticsearch() -> CConfigFile->{closure}() in include/classes/api/managers/CHistoryManager.php:812]
      Trying to access array offset on value of type null [chart.php:147 -> CLineGraphDraw->draw() -> CLineGraphDraw->selectData() -> CHistoryManager->getGraphAggregationByWidth() -> CHistoryManager->getGraphAggregationByWidthFromElasticsearch() -> CConfigFile->{closure}() in include/classes/api/managers/CHistoryManager.php:812]
      Invalid argument supplied for foreach() [chart.php:147 -> CLineGraphDraw->draw() -> CLineGraphDraw->selectData() -> CHistoryManager->getGraphAggregationByWidth() -> CHistoryManager->getGraphAggregationByWidthFromElasticsearch() -> CConfigFile->{closure}() in include/classes/api/managers/CHistoryManager.php:812]

        Attachments

          Activity

            People

            Assignee:
            Miks.Kronkalns Miks Kronkalns
            Reporter:
            Miks.Kronkalns Miks Kronkalns
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: