Guidance on usage: Monit – Server Monitoring System on Debian 10

Configuration and Connection of Monit – Server Monitoring System on Debian 10

Configuration of Monit server

After purchasing and starting the VM, you need to know its IP address. You can find it in your Azure personal account. Select the virtual machine from the list and click on “Overview” to view the IP address under the “Public IP Address” line.

You should allow access by port TCP – 2812, which you can do in the properties of the Azure firewall network. 

  1. To configure Monit you should connect to a VM:
    1. With OpenSSH

In the Windows 10 operating system (starting with version 1809), an OpenSSH client is available, with which you can connect to Linux servers via SSH. If Windows 10 is suitable and the OpenSSH client is installed, you can start connecting via SSH. To do this, launch a normal Windows command prompt and enter the command “ssh user@*vm_ip*” (1), where “user” is the username that was specified while creating the virtual machine and “*vm_ip*” is the VM IP address.

Then type “Yes” (2) and enter the password (3) that was specified while creating the virtual machine.

  1. With the PuTTY application 

To do this, you need the PuTTY application to connect via SSH. You can download it from the following link – Download

Run PuTTY, enter the VM address in the “Host” field (1), and click “Open” (2) to connect.

In the opened console, you will need to enter the username (1) and password (2) that were specified while the VM was being created (you’ll not see the password in the console while entering it).

  1. Type the command monit -h” in order to get help
  1. Control files are located in cd /etc/monit.d/
  1. They contain a series of service entries and global option statements.
  1. To create your own control, put a new “.cfg” file in this directory using the command:- sudo nano /etc/monit.d/cron.cfg

Connection to Monit server

  1. After starting the VM, you can go to the main page. To do this, go to the following address: http://*vm_ip*:2812.
  1. The authorization page will open. Use the username “admin” and password “monit” to log in as an administrator.
  1. Now you can manage and control processes, programs, files, directories, and filesystems.

More information on setting up and working with Monit can be found here: Monit wiki, Monit Manual