zabbix/zabbix-docker

JavaGateway,JavaGatewayPort,StartJavaPollers can not does not take effect

ZZZhsb opened this issue · 2 comments

SUMMARY

Hello, I want to use JavaGateway, my zabbix version is 6.4.4,
i use thie command create container
docker create --name zabbix-server-mysql -t \ -e DB_SERVER_HOST="127.0.0.1" \ -e MYSQL_DATABASE="zabbix" \ -e MYSQL_USER="root" \ -e MYSQL_PASSWORD="root" \ -e ZBX_DBTLSCONNECT="required" \ -e ZBX_LISTENPORT="19051" \ -e ZBX_LISTENIP=10.10.20.142 \ -e ZBX_ALLOWUNSUPPORTEDDBVERSIONS=1 \ -v /home/work/zabbix/:/etc/zabbix/ \ --net=host \ -p 19051:19051 \ --restart unless-stopped \ --privileged \ zabbix/zabbix-server-mysql:centos-6.4.4
I start JavaGateway succeed,
then i set the config
image
but when I restart zabbix server,the config was removed.
image
and my zabbix_server.conf These configuration items are missing

You must configure all options using environment variables.

Thank you,I use this command it can work
docker create --name zabbix-server-mysql -t
-e DB_SERVER_HOST="127.0.0.1"
-e MYSQL_DATABASE="zabbix"
-e MYSQL_USER="root"
-e MYSQL_PASSWORD="root"
-e ZBX_DBTLSCONNECT="required"
-e ZBX_LISTENPORT="19051"
-e ZBX_LISTENIP=10.10.20.142
-e ZBX_JAVAGATEWAY_ENABLE=true
-e ZBX_JAVAGATEWAY=10.10.20.142
-e ZBX_JAVAGATEWAYPORT=10052
-v /home/work/zabbix/:/etc/zabbix/
--net=host
-p 19051:19051
--restart unless-stopped
--privileged
zabbix/zabbix-server-mysql:centos-6.4.4