Setup Monit for SafeSquid Monitoring
Installation and configuration of Monit Service
Monit will automatically get installed when you install SafeSquid Appliance Builder (SAB) to setup your secure web gateway.
You can check status of monit service using command:
If monit is not installed automatically while installing SAB or while installing SafeSquid manually, you have to install and configure it manually.
Follow below steps to install Monit:
Run below command to install the monit service
apt-get install monit
Open /etc/monit folder and edit monitrc configuration file.
Set the parameters as shown below-
You need to restart the monit service by using below command
You can check whether SafeSquid is monitored by monit or not by using below command
You will see all services monitored by the monit
To test the working of Monit service, stop the SafeSquid service by using command
Now check the process Id of SafeSquid service with the command
You will observe that SafeSquid service had automatically been started by Monit without any user interaction.
Add Monit service to startup
You can also execute below command to add monit service to be started for every reboot of machine.
update-rc.d monit enable