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

Cannot see any trends on graph if HISTORY is stored on Elasticsearch

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 4.0.4
    • Frontend (F)
    • Red Hat Enterprise Linux Server 7.3 (Maipo)
      Zabbix 4.0.1
      Elasticsearch 5.6.10

      I configured Zabbix server and Zabbix frontend to store history values on Elasticsearch (trends still stored in DB).

      When I display any graph, even on large period (> history storage period), I only see history values (from Elasticsearch). There is no trend value displayed, even if I set graph period to see only trends values.

      I have checked the DB trends table and I could find many trends values stored by Zabbix server.

      Here is my zabbix.conf.php :

      ---------------------------------------------------------------------------------

      global $DB, $HISTORY;

      $DB['TYPE'] = 'POSTGRESQL';
      $DB['SERVER'] = 'pgzbx';
      $DB['PORT'] = '5432';
      $DB['DATABASE'] = 'zabbix';
      $DB['USER'] = 'zbxpguser';
      $DB['PASSWORD'] = 'zbxpgpwd';
      $DB['SCHEMA'] = '';

      $HISTORY['url'] = 'http://xxxx:xxxx@xxxxx:9200';
      $HISTORY['types'] = ['str', 'text', 'log', 'dbl','uint'];

      $ZBX_SERVER = 'zabsrv';
      $ZBX_SERVER_PORT = '10051';
      $ZBX_SERVER_NAME = 'zabsrv';

      $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;

      ---------------------------------------------------------------------------------

      Now, if I change frontend config to declare only DB like this :

      ---------------------------------------------------------------------------------

      global $DB;

      $DB['TYPE'] = 'POSTGRESQL';
      $DB['SERVER'] = 'pgzbx';
      $DB['PORT'] = '5432';
      $DB['DATABASE'] = 'zabbix';
      $DB['USER'] = 'zbxpguser';
      $DB['PASSWORD'] = 'zbxpgpwd';
      $DB['SCHEMA'] = '';

      $ZBX_SERVER = 'zabsrv';
      $ZBX_SERVER_PORT = '10051';
      $ZBX_SERVER_NAME = 'zabsrv';

      $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;

      ---------------------------------------------------------------------------------

      I can see all DB trends in the graph but I cannot see history values (which is totally expected in this case).

      I suppose that there is a mistake on Zabbix frontend to retrieve and display all history/trend on graph when Elasticsearch has been declared on frontend config.

      May I have done something wrong inf my Zabbix frontend config ?

            ArtursL Arturs Lontons
            Vince.v35 Vincent V.
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: