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

    • Sprint 66 (Jul 2020)
    • 0.125

      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 

            Miks.Kronkalns Miks Kronkalns
            Miks.Kronkalns Miks Kronkalns
            Team B
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: