Zabbix: various bugfixes agent1/agent2 (#8294)

* Zabbix: various bugfixes agent1/agent2

* Update zabbix.sh

---------

Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
This commit is contained in:
CanbiZ
2025-10-11 22:53:10 +02:00
committed by GitHub
parent b39672f92e
commit b4f0fcb3d3
2 changed files with 24 additions and 5 deletions

View File

@@ -102,8 +102,14 @@ fi
msg_ok "Configured Fping"
msg_info "Starting Services"
systemctl restart zabbix-server zabbix-agent2 apache2
systemctl enable -q --now zabbix-server zabbix-agent2 apache2
if [ "$AGENT_PKG" = "zabbix-agent2" ]; then
AGENT_SERVICE="zabbix-agent2"
else
AGENT_SERVICE="zabbix-agent"
fi
systemctl restart zabbix-server
systemctl enable -q --now zabbix-server $AGENT_SERVICE apache2
msg_ok "Started Services"
motd_ssh