-
Type:
Problem report
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: None
-
Component/s: None
Steps to reproduce:
- Configure zabbix to use elasticsearch for float metric type
- Create item, seed data
- Create item history widget in dashboard, specify the item, importantly specify "Trends" as History data
- Save the widget
Result:
Widget renders error:
Elasticsearch error: [1:125] [date_histogram] unknown field [interval] did you mean [fixed_interval]?. Undefined array key "group_by_itemid" [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → Widgets\ItemHistory\Actions\WidgetView->doAction() → Widgets\ItemHistory\Actions\WidgetView->getItemValuesByDataSource() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CTrend->get() → CTrend->getFromElasticsearch() in include/classes/api/services/CTrend.php:301] Trying to access array offset on null [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → Widgets\ItemHistory\Actions\WidgetView->doAction() → Widgets\ItemHistory\Actions\WidgetView->getItemValuesByDataSource() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CTrend->get() → CTrend->getFromElasticsearch() in include/classes/api/services/CTrend.php:301] foreach() argument must be of type array|object, null given [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → Widgets\ItemHistory\Actions\WidgetView->doAction() → Widgets\ItemHistory\Actions\WidgetView->getItemValuesByDataSource() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CTrend->get() → CTrend->getFromElasticsearch() in include/classes/api/services/CTrend.php:301]