-
Problem report
-
Resolution: Fixed
-
Trivial
-
5.0.1
-
Dockerized Elasticsearch 7.7
-
Sprint 66 (Jul 2020), Sprint 67 (Aug 2020)
-
0.5
Preconditions:
Zabbix configured to store item values in Elasticsearch (I used unsigned numbers).
Steps to reproduce:
- Create unsigned numeric item of type "Zabbix trapper".
- Send one or more valid values. Check latest data table view for particular host and item to be sure that values are stored.
- 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]