Setup Monit for SafeSquid Monitoring

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:  
  1. /etc/init.d/monit status
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
  1. apt-get install monit
Open /etc/monit folder and edit monitrc configuration file.
Set the parameters as shown below-
To check the services in 3 second interval
set daemon 3
enable the built-in web server for browsing the services you're monitoring:
set httpd port 2812 and
use address localhost
allow localhost
allow admin:monit
allow @monit
To include the configuration or its parts from other files or directories.
  1. include /etc/monit/conf.d/*
You need to restart the monit service by using below command
  1. /etc/init.d/monit restart
You can check whether SafeSquid is monitored by monit or not by using below command
  1. monit status
You will see all services monitored by the monit

Testing

To test the working of Monit service, stop the SafeSquid service by using command    /etc/init.d/safesquid stop
Now check the process Id of SafeSquid service with the command    pidof safesquid
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.
  1. update-rc.d monit enable


    • Related Articles

    • Setup Your Secure Web Gateway on your preferred Linux distribution

      Overview SafeSquid Appliance Builder (SAB) is an optimized version of Ubuntu Linux, optimized for easy setup of your secure web gateway. The SAB installs the Ubuntu Linux operating system, downloads and deploys the SafeSquid for Linux installation ...
    • Setup Authentication

      Authentication in SafeSquid Proxy Authentication: Proxies can serve as access-control devices. HTTP defines a mechanism called proxy authentication that blocks requests for content until the user provides valid access-permission credentials to the ...
    • Setup Reporting Module

      Advantages of Reporting Module over the default Dashboard: Reduced Data Processing time More detailed reports Hour-wise reports More filtering options Deeper data analysis An automated data mining engine Exportable reports to PDF and Excel formats ...
    • Kerberos SSO Authentication Setup

      The main aim/objective of this particular authentication is that the user doesn’t have to enter its credentials the software will automatically detect from which user group does the user belong and will set the restrictions accordingly. Overview ...
    • Setup HTTPS Inspection

      Overview Over the couple of years, the internet is changing its dimensions in terms of security. The web is shifting towards HTTPS, to deliver secure services to users. “The main motivation for HTTPS is authentication of the visited website and ...