High availability monitoring service Monit malfunction.

General Information about how to make best use of this forum
India Pratik
Posts: 25
Joined: Fri Jun 10, 2022 7:15 am

High availability monitoring service Monit malfunction.

Post by Pratik » Sat Aug 06, 2022 10:51 am

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.

Code: Select all

monit status
image.png
image.png (157.21 KiB) Viewed 1811 times
Validating monit.log

Code: Select all

less /var/log/monit.log
image.png
image.png (162.94 KiB) Viewed 1811 times
Work around for this problem is to delete all files in /var/lib/monit/ and restart monit service.

Code: Select all

rm /var/lib/monit/* ; /etc/init.d/monit restart
image.png
image.png (9.74 KiB) Viewed 1811 times
Check Monit status

Code: Select all

monit status
image.png
image.png (132.3 KiB) Viewed 1811 times
All services are now being monitored by Monit.

India Pratik
Posts: 25
Joined: Fri Jun 10, 2022 7:15 am

Re: High availability monitoring service Monit malfunction.

Post by Pratik » Thu Aug 25, 2022 8:08 am

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.

Post Reply