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

Displaying all data after adding $HISTORY to zabbix.conf.php (Elasticsearch)

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Won't fix
    • Affects Version/s: 3.4.7
    • Fix Version/s: None
    • Component/s: Server (S)
    • Labels:
    • Environment:
      FreeBSD 11.1
      Nginx 1.12.2
      PHP-fpm 7.1.14
      PostgreSQL 9.6
      Elasticsearch 6.2

      Description

      Bringing Elasticsearch into the fold on an existing live Zabbix platform sat on Postgres 9.6.

      It appears that changing the globals in zabbix.conf.php and adding $HISTORY enables me to see just historical data from the moment I enabled Elasticsearch, however, all previous data has disappeared from show.

      The globals line is. global $DB, $HISTORY;

      --------

      If i revert the globals back to just $DB then I can see the previous historical and trending data up to the point when i enabled Elasticsearch but nothing new which makes sense.

      The globals line here is. global $DB;

      -------

      Output of my zabbix.conf.php

      <?php
      global $DB, $HISTORY;

      $DB['TYPE'] = 'POSTGRESQL';
      $DB['SERVER'] = '******';
      $DB['PORT'] = '5432';
      $DB['DATABASE'] = 'zabbix';
      $DB['USER'] = 'zabbix';
      $DB['PASSWORD'] = '******';

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

      $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;

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

      Am i missing something here to see both sets of data?

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            breathe Matthew Leach
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: