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

History.get doesn't work with Elasticsearch backend.

    XMLWordPrintable

    Details

    • Team:
      Team B
    • Sprint:
      Sprint 66 (Jul 2020)
    • Story Points:
      0.125

      Description

      API history.get request doesn't work if limit is not specified or specified limit is greater then CElasticsearchHelper::MAX_RESULT_WINDOW.

      Steps to reproduce:

      1. Setup Zabbix with Elasticsearch backend;
      2. Store some item values in ES;
      3. Make API request for particular item without "limit" argument.
      {
          "output": "extend",
          "itemids": "31126"
      } 

      Result:

      Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/zabbix/ui/include/classes/helpers/CElasticsearchHelper.php on line 58
      
      Warning:  file_get_contents(http://_search/scroll): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/zabbix/ui/include/classes/helpers/CElasticsearchHelper.php on line 58 

        Attachments

          Activity

            People

            Assignee:
            Miks.Kronkalns Miks Kronkalns
            Reporter:
            Miks.Kronkalns Miks Kronkalns
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: