fixed typo added line to disable zabbix active checks

This commit is contained in:
2026-04-27 23:54:36 +00:00
parent 872e3855eb
commit b019b8d079
2 changed files with 4 additions and 2 deletions

View File

@@ -60,6 +60,9 @@ if [[ ! -f /usr/bin/python ]]
ln /usr/bin/python3 /usr/bin/python
fi
# disable zabbix active checks
sed -i 's/ServerActive=192.168.1.44/#ServerActive=127.0.0.1/g' /etc/zabbix/zabbix_agent2.conf
# update and upgrade
apt-get update
apt-get upgrade -y

View File

@@ -15,8 +15,7 @@ sudo systemctl restart zabbix-agent2
sudo systemctl enable zabbix-agent2
sed -i 's/Server=127.0.0.1/Server=192.168.1.44/g' /etc/zabbix/zabbix_agent2.conf
sed -i 's/ServerActive=127.0.0.1/ServerActive=192.168.1.44/g' /etc/zabbix/zabbix_agent2.conf
sed -i "s/Hostname=Zabbix server/Server=$HOSTNAME/g" /etc/zabbix/zabbix_agent2.conf
sed -i "s/Hostname=Zabbix server/Hostname=$HOSTNAME/g" /etc/zabbix/zabbix_agent2.conf
if command -v docker &> /dev/null
then