From 430e125350c7078c01999087c81b63fb33650fbf Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Fri, 17 May 2024 12:58:27 +0200 Subject: [PATCH] Fix hostname in proxy config --- src/zabbix-proxy/install-service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zabbix-proxy/install-service.sh b/src/zabbix-proxy/install-service.sh index 6f5b5ff..7753011 100644 --- a/src/zabbix-proxy/install-service.sh +++ b/src/zabbix-proxy/install-service.sh @@ -36,7 +36,7 @@ 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" /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 +sed -i "s/Hostname=Zabbix proxy/Hostname=${LXC_HOSTNAME}.${LXC_DOMAIN}/g" /etc/zabbix/zabbix_proxy.conf systemctl enable zabbix-proxy