mirror of
https://git.bashclub.org/bashclub/zamba-lxc-toolbox.git
synced 2025-07-13 07:54:22 +02:00
Change zabbix proxy config
This commit is contained in:
parent
d1c9615a4a
commit
84173e46a8
2 changed files with 3 additions and 2 deletions
|
@ -32,8 +32,9 @@ 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_proxy.conf
|
||||
echo "Server=${ZBX_ADDR}" >> /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
|
||||
|
||||
systemctl enable zabbix-proxy
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue