Hi there, I followed https://www.zabbix.com/documentation/4.0/……/elastic_search_setup to setup the relationship between my zabbix and elasticsearch,and there's a problem.
In fact , I did everything the document said, zabbix_server.conf,zabbix.conf.php,create mapping, and finally, I can see data in my elasticsearch,but the web of zabbix doesn't work.(as attached)
I know that Elasticsearch support is experimental, but I'm just confused.
My zabbix edition is 4.0(Zabbix 4.0 Appliance,which everything is preconfigured), the menu says that this edition support elasticsearch.
However, my elasticsearch edition is 6.5.4, which is out of Elasticsearch versions: 5.0.x –> 6.1.x which menual confirmed.
Maybe this is the problem why my zabbix web cannot connect, maybe not, I have no idea.
Ignoring this ,I still not understand how zabbix.conf.php works, this is exactly what I want to know. could you please kindly let me know? thanks!
follow the menual,in conf/zabbix.conf.php,we need to add $HISTORY as well as follows:
no change to these?
but even so ,it cannot explain why my zabbix cannot connect to mysql also,no change to the database at all (no new data to mysql, but it still works,right?)
Here's my whole zabbix.conf.php,maybe help:
more zabbix.conf.php
<?php
// Zabbix GUI configuration file.
global $DB,$HISTORY;
$DB['TYPE'] = 'MYSQL';
$DB['SERVER'] = 'localhost';
$DB['PORT'] = '0';
$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = '*****';
// Schema name. Used for IBM DB2 and PostgreSQL.
$DB['SCHEMA'] = '';
$ZBX_SERVER = 'localhost';
$ZBX_SERVER_PORT = '10051';
$ZBX_SERVER_NAME = 'Zabbix Appliance';
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
// Elasticsearch url (can be string if same url is used for all types).
$HISTORY['url'] = 'http://*******:9200';
// Value types stored in Elasticsearch.
$HISTORY['types'] = ['uint', 'text', 'log', 'str', 'dbl'];
?>
In fact , I did everything the document said, zabbix_server.conf,zabbix.conf.php,create mapping, and finally, I can see data in my elasticsearch,but the web of zabbix doesn't work.(as attached)
I know that Elasticsearch support is experimental, but I'm just confused.
My zabbix edition is 4.0(Zabbix 4.0 Appliance,which everything is preconfigured), the menu says that this edition support elasticsearch.
However, my elasticsearch edition is 6.5.4, which is out of Elasticsearch versions: 5.0.x –> 6.1.x which menual confirmed.
Maybe this is the problem why my zabbix web cannot connect, maybe not, I have no idea.
Ignoring this ,I still not understand how zabbix.conf.php works, this is exactly what I want to know. could you please kindly let me know? thanks!
follow the menual,in conf/zabbix.conf.php,we need to add $HISTORY as well as follows:
$HISTORY['url'] = 'http://test.elasticsearch.lan:9200'; $HISTORY['types'] = ['str', 'text', 'log','dbl','uint'];
no change to these?
- $DB['TYPE'] = 'MYSQL';
- $DB['SERVER'] = 'localhost';
- $DB['PORT'] = '0';
- $DB['DATABASE'] = 'zabbix';
but even so ,it cannot explain why my zabbix cannot connect to mysql also,no change to the database at all (no new data to mysql, but it still works,right?)
Here's my whole zabbix.conf.php,maybe help:
more zabbix.conf.php
<?php
// Zabbix GUI configuration file.
global $DB,$HISTORY;
$DB['TYPE'] = 'MYSQL';
$DB['SERVER'] = 'localhost';
$DB['PORT'] = '0';
$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = '*****';
// Schema name. Used for IBM DB2 and PostgreSQL.
$DB['SCHEMA'] = '';
$ZBX_SERVER = 'localhost';
$ZBX_SERVER_PORT = '10051';
$ZBX_SERVER_NAME = 'Zabbix Appliance';
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
// Elasticsearch url (can be string if same url is used for all types).
$HISTORY['url'] = 'http://*******:9200';
// Value types stored in Elasticsearch.
$HISTORY['types'] = ['uint', 'text', 'log', 'str', 'dbl'];
?>
Comment