Hi,
I'm currently in the process of deploying our Zabbix environment and have run into an issue with the Zabbix proxy.
It seems the proxy is keeping the accumulated data on the proxy itself as well as sending it to the database. The latter is of course expected but the proxy storing data locally should not be the case as eventually it will run out of space.
I'm currently running the database in a HA cluster setup using pcs and MySQL for the database. The proxy is configured using Docker.
The configuration for the Docker containers is as follows:
MySQL container:
Zabbix proxy container:
I'm currently in the process of deploying our Zabbix environment and have run into an issue with the Zabbix proxy.
It seems the proxy is keeping the accumulated data on the proxy itself as well as sending it to the database. The latter is of course expected but the proxy storing data locally should not be the case as eventually it will run out of space.
I'm currently running the database in a HA cluster setup using pcs and MySQL for the database. The proxy is configured using Docker.
The configuration for the Docker containers is as follows:
MySQL container:
Code:
docker run --name mysql-server -t \ -e MYSQL_DATABASE="zabbix_proxy" \ -e MYSQL_USER="zabbix_proxy" \ -e MYSQL_PASSWORD="<REDACTED>" \ -e MYSQL_ROOT_PASSWORD="<REDACTED>" \ -d mysql:8.0 \ --character-set-server=utf8 --collation-server=utf8_bin \ --default-authentication-plugin=mysql_native_password
Code:
docker run --name zabbix-proxy01 -t \ -e DB_SERVER_HOST="mysql-server" \ -e MYSQL_DATABASE="zabbix_proxy" \ -e MYSQL_USER="zabbix_proxy" \ -e MYSQL_PASSWORD="<REDACTED>" \ -e MYSQL_ROOT_PASSWORD="<REDACTED>" \ -e ZBX_HOSTNAME="srv-zabbix-proxy01" \ -e ZBX_SERVER_HOST="x.x.x.x" \ -e ZBX_ENABLEREMOTECOMMANDS="1" \ -e ZBX_STARTPOLLERS="20" \ -e ZBX_STARTPINGERS="5" \ -e ZBX_STARTDISCOVERERS="5" \ -e ZBX_STATSALLOWEDIP="x.x.x.x" \ -e ZBX_CACHESIZE="4G" \ -e ZBX_HISTORYCACHESIZE="512M" \ -e ZBX_HISTORYINDEXCACHESIZE="512M" \ -e ZBX_CONFIGFREQUENCY="60" \ -e ZBX_TIMEOUT="5" \ -e ZBX_PROXYLOCALBUFFER="0" \ -e ZBX_PROXYOFFLINEBUFFER="24" \ --restart unless-stopped \ --link mysql-server:mysql \ --link zabbix-agent-proxy01:zabbix-agent \ --mount type=bind,source=/usr/share/snmp/mibs,target=/var/lib/zabbix/mibs \ --mount type=bind,source=/usr/share/zabbix/externalscripts,target=/usr/lib/zabbix/externalscripts \ -d zabbix/zabbix-proxy-mysql:ubuntu-5.0.0