If you have Zimbra and running on VMware, you can configure automatic restart when one or some services not running/stopped with VMware HA Script. You can find VMware HA Script from here : https://wiki.zimbra.com/wiki/VMware_HA_script_in_Zimbra_Collaboration
If you have Zimbra and not running on VMware and want to automatic restart when one or some services not running/stopped, you can try this step 😉
# Download script check Zimbra status
cd /opt/zimbra wget -c --no-check-certificate https://raw.githubusercontent.com/imanudin11/script/master/check_zimbra.pl chmod +x check_zimbra.pl
# Download script automatic restart services
wget -c --no-check-certificate https://raw.githubusercontent.com/imanudin11/script/master/otomatis_restart_zimbra.sh chmod +x otomatis_restart_zimbra.sh
Please try to stop some services of Zimbra and execute otomatis_restart_zimbra.sh script
Finally, you can configure the script with crontab
Good luck and hopefully useful 🙂
Hi Iman,
Any procedure for doing the automatic restarts in Zimbra intalled directly on physical server?
Thanks in advance.
Hello Afsher,
This script will work on both (Virtual or Physical server)
Hi imaudin, you can add in the script that first stop the zmconfigdctl and then start it , How would you do it? , this in case a process is running
su – zimbra -c ‘zmconfigdctl stop’
su – zimbra -c ‘zmconfigdctl start’
hi imaudin,
How about if all services are running but on the zimbra web admin shows that all services are not running
is this problems related with high number of mail stuck in deferred ?
thank you
Hello,
What zimbra version do you use? please check Zimbra crontab. Is there any schedule or not
@tkatie I see that your message is recent so you may experience the same as I: after installing Zimbra 8.7.11 Patch 11 I get warnings in web Admin Console that some services are not running, although all services are fine in command console.
Looking further in Zimbra forums, I see that this happens to other people now, and it happened before. Most likely cause is syslog configuration.
Hello,
Please check your Zimbra crontab.