Hi there,
Trying to get a proxy-mysql going, and not having a lot of fun. The issue seems to be with the zabbix deploying of the database schema. For completeness here are the details:
MySQL:
MySQL starts up fine - and is ready for connections.
Zabbix Proxy MySQL
Also starts up fine, finds the database, and starts to upgrade it:
And fails with the following:
It only ends up with 20 tables in the database when querying mysql:
Not sure how I can work around this. I have also tried the docker compose file and that plain doesn't work - all services cannot connect to the mysql server.
Help?
Cheers,
Doogie
Trying to get a proxy-mysql going, and not having a lot of fun. The issue seems to be with the zabbix deploying of the database schema. For completeness here are the details:
MySQL:
Code:
docker run -d --name zabbix-mysql -t -e MYSQL_DATABASE="zabbix_proxy" -e MYSQL_USER="zabbix" -e MYSQL_PASSWORD="a" -e MYSQL_ROOT_PASSWORD="b" --network zabbix --restart unless-stopped zabbix/mysql:latest --character-set-server=UTF8MB4 --collation-server=UTF8MB4_bin --secure-file-priv=NULL --default-authentication-plugin=mysql_native_password
Zabbix Proxy MySQL
Code:
docker run --name zabbix-proxy-mysql -t -e DB_SERVER_HOST="zabbix-mysql" -e MYSQL_USER="zabbix" -e MYSQL_PASSWORD="b" -e ZBX_SERVER_HOST="zabbix.b.com" -e ZBX_CONFIGFREQUENCY=60 -e ZBX_HOSTNAME="zabbix-proxy.b.com" --network zabbix -p 10051:10051 --restart unless-stopped zabbix/proxy-mysql:centos-latest
Code:
* DB_SERVER_HOST: zabbix-mysql * DB_SERVER_PORT: 3306 * DB_SERVER_DBNAME: zabbix_proxy ******************** ** Database 'zabbix_proxy' already exists. Please be careful with database COLLATE! ** Creating 'zabbix_proxy' schema in MySQL ERROR 1050 (42S01) at line 1: Table 'users' already exists
Code:
6:20200725:082654.270 [Z3005] query failed: [1146] Table 'zabbix_proxy.config' doesn't exist [show columns from config like 'server_check_interval'] 6:20200725:082654.270 Cannot upgrade database: the database must correspond to version 2.0 or later. Exiting ...
Code:
mysql> use zabbix_proxy; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> show tables; +------------------------+ | Tables_in_zabbix_proxy | +------------------------+ | applications | | dchecks | | drules | | group_discovery | | group_prototype | | hosts | | hstgrp | | httpstep | | httptest | | interface | | items | | maintenances | | screen_user | | screen_usrgrp | | screens | | screens_items | | slides | | slideshow_user | | slideshow_usrgrp | | slideshows | | users | | valuemaps | +------------------------+ 22 rows in set (0.00 sec) mysql>
Help?

Cheers,
Doogie
Comment