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