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

Frontend does not show values from Elasticsearch

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 3.4.5
    • None
    • None
    • CentOS Linux release 7.4.1708

      For testing purposes, I want to store all historical text data in external Elasticserach database.

      I've followed these instructions: https://www.zabbix.com/documentation/3.4/manual/appendix/install/elastic_search_setup

      Here is the corresponding section from `zabbix_server.conf`:

      HistoryStorageURL=https://user:[email protected]
                                                      
      HistoryStorageTypes=text                                                                     
      

      I can see new data in Elasticsearch. But in Monitoring -> Latest data -> History I do not see any new values.

      Here is my /etc/zabbix/web/zabbix.conf.php:

      $HISTORY['url']   = [                                                                             
              'text' => 'https://user:[email protected]'   
      ];                                                                                                
      $HISTORY['types'] = ['text'];                                                                                                                                       
      

      Zabbix API also does not return data from Elastic. Here is the latest item from history.get:

      {u'itemid': u'23702', u'ns': u'708786003', u'value': u'.', u'clock': u'1514451813'}
      

      And here is the result from MySQL:

      MariaDB [zabbix]> SELECT * FROM history_text ORDER BY clock DESC LIMIT 1;
      +--------+------------+-------+-----------+                              
      | itemid | clock      | value | ns        |                              
      +--------+------------+-------+-----------+                              
      |  23702 | 1514451813 | .     | 708786003 |                              
      +--------+------------+-------+-----------+                              
      1 row in set (0.03 sec)                                                  
      

      What do I need to do to get the data from Elastic?

            Unassigned Unassigned
            banzayats Vadym Kalsin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: