From d1c9615a4a4abfe92851ec2467bb681a0f523dd3 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Fri, 17 May 2024 12:18:41 +0200 Subject: [PATCH] add server parameter for zabbix proxy --- conf/zamba.conf.example | 7 ++++++- src/zabbix-proxy/install-service.sh | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/conf/zamba.conf.example b/conf/zamba.conf.example index f0f8bd2..0af5d85 100644 --- a/conf/zamba.conf.example +++ b/conf/zamba.conf.example @@ -212,4 +212,9 @@ SEMAPHORE_ADMIN_PASSWORD='Start123' ############### docker Section ############### # Install Portainer (=full), Protainer Agent (=agent) or none -PORTAINER=none \ No newline at end of file +PORTAINER=none + +############### zabbix Section ############### + +# (Zabbix Proxy) Name:Port of the zabbix server +ZBX_ADDR=zabbix.zmb.rocks:10051 \ No newline at end of file diff --git a/src/zabbix-proxy/install-service.sh b/src/zabbix-proxy/install-service.sh index 08c6007..ef00b39 100644 --- a/src/zabbix-proxy/install-service.sh +++ b/src/zabbix-proxy/install-service.sh @@ -31,7 +31,8 @@ EOF cat /usr/share/zabbix-sql-scripts/postgresql/proxy.sql | sudo -u zabbix psql ${ZABBIX_DB_NAME} -echo "DBPassword=${ZABBIX_DB_PWD}" >> /etc/zabbix/zabbix_server.conf +echo "DBPassword=${ZABBIX_DB_PWD}" >> /etc/zabbix/zabbix_proxy.conf +echo "Server=${ZBX_ADDR}" >> /etc/zabbix/zabbix_proxy.conf systemctl enable zabbix-proxy