ExportXMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None

      Steps to reproduce:

      1. Configure zabbix to use elasticsearch for float metric type
      2. Create item, seed data
      3. Create item history widget in dashboard, specify the item, importantly specify "Trends" as History data
      4. 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]

            Assignee:
            Michal Kudlacz
            Reporter:
            Martins Talbergs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 20m
                20m