Experiencing issues with the high availability monitoring service Monit. It seems to be malfunctioning. Any advice on troubleshooting or resolving this unexpected behaviour would be greatly appreciated!
For SafeSquid version 2022.0802.1537.3 Monit service malfunctions.
Monit is a utility for managing and monitoring processes, Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.
Example Monit can start SafeSquid service if it does not run or restart a process if it does not respond look for changes made to certain files.
However, for the latest version of SafeSquid 2022.0802.1537.3 Monit service unmonitors all services set for monitoring after SafeSquid upgrade.
monit status
Validating monit.log
less /var/log/monit.log
Work around for this problem is to delete all files in /var/lib/monit/ and restart monit service.
rm /var/lib/monit/* ; /etc/init.d/monit restart
Check Monit status
monit status
All services are now being monitored by Monit.
2nd Option:
You can restart your SafeSquid server to clear monit state files, however, Restarting SafeSquid server might not be an ideal solution if the proxy server is in production.