mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-01 21:30:09 +00:00
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:
parent
b39672f92e
commit
b4f0fcb3d3
2 changed files with 24 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue