From 8f668262d8f32dbc57b75b9f7fe0dbe7a5fc6d91 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Fri, 17 May 2024 12:55:17 +0200 Subject: [PATCH] Fix zabbix proxy config --- src/zabbix-proxy/install-service.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zabbix-proxy/install-service.sh b/src/zabbix-proxy/install-service.sh index 787f1dc..6f5b5ff 100644 --- a/src/zabbix-proxy/install-service.sh +++ b/src/zabbix-proxy/install-service.sh @@ -34,7 +34,9 @@ cat /usr/share/zabbix-sql-scripts/postgresql/proxy.sql | sudo -u zabbix psql ${Z echo "DBPassword=${ZABBIX_DB_PWD}" >> /etc/zabbix/zabbix_proxy.conf srv=$(grep -E "^Server" /etc/zabbix/zabbix_proxy.conf) -sed -i "s/$srv/Server=${ZBX_ADDR}/g" "s/# ListenPort=/ListenPort=/g" "s/Hostname=Zabbix proxy/# Hostname=${LXC_HOSTNAME}.${LXC_DOMAIN}/g" /etc/zabbix/zabbix_proxy.conf +sed -i "s/$srv/Server=${ZBX_ADDR}/g" /etc/zabbix/zabbix_proxy.conf +sed -i "s/# ListenPort=/ListenPort=/g" /etc/zabbix/zabbix_proxy.conf +sed -i "s/Hostname=Zabbix proxy/# Hostname=${LXC_HOSTNAME}.${LXC_DOMAIN}/g" /etc/zabbix/zabbix_proxy.conf systemctl enable zabbix-proxy