mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-06 19:32:49 +00:00
Compare commits
1 Commits
2025-11-05
...
zabbix_fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b213a4086 |
16
ct/zabbix.sh
16
ct/zabbix.sh
@@ -42,12 +42,8 @@ function update_script() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Stopping Services"
|
msg_info "Stopping Services"
|
||||||
$STD systemctl stop zabbix-server
|
systemctl stop zabbix-server
|
||||||
if systemctl list-unit-files | grep -q zabbix-agent2; then
|
systemctl stop "$AGENT_SERVICE"
|
||||||
$STD systemctl stop zabbix-agent2
|
|
||||||
else
|
|
||||||
$STD systemctl stop zabbix-agent
|
|
||||||
fi
|
|
||||||
msg_ok "Stopped Services"
|
msg_ok "Stopped Services"
|
||||||
|
|
||||||
msg_info "Updating Zabbix"
|
msg_info "Updating Zabbix"
|
||||||
@@ -88,12 +84,8 @@ function update_script() {
|
|||||||
msg_ok "Updated Zabbix"
|
msg_ok "Updated Zabbix"
|
||||||
|
|
||||||
msg_info "Starting Services"
|
msg_info "Starting Services"
|
||||||
$STD systemctl start zabbix-server
|
systemctl start zabbix-server
|
||||||
if systemctl list-unit-files | grep -q zabbix-agent2; then
|
systemctl start "$AGENT_SERVICE"
|
||||||
$STD systemctl start zabbix-agent2
|
|
||||||
else
|
|
||||||
$STD systemctl start zabbix-agent
|
|
||||||
fi
|
|
||||||
systemctl restart apache2
|
systemctl restart apache2
|
||||||
msg_ok "Started Services"
|
msg_ok "Started Services"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user