![]() ![]() To enable the Monit service to get started automatically with the system boot, run the command below: sudo /lib/systemd/systemd-sysv-install enable monit To check the Monit configuration, use the command below: sudo monit -t OutputĬontrol file syntax OK Enable Monit Service Managerīy default, the Monit service is not enabled on Ubuntu 20.04. When you are done, save and close the file. Use address 0.0.0.0 # only accept connection from localhost (drop if you use M/M>Īllow 0.0.0.0/0 # allow localhost to connect to the server andĪllow admin:monit # require user 'admin' with password 'monit' You can also change the default password for the admin that is monit. Also, replace the allow and use address value from localhost to 0.0.0.0 if you want to access the Monit web interface remotely as shown below. Then remove the # tag for the following lines. To do this, open the Monit config file by using your favorite text editor, here we use the vi editor: sudo vi /etc/monit/monitrc Enable Monit httpd portīy default, port 2812 is disabled which is used for communicating with Monit. It is better to create a new one for the desired settings. It is recommended that you do not make your own settings directly in this file. The Monit program can be configured using the /etc/monit/monitrc file. Configure Monit Service Manager on Ubuntu 20.04 ![]() If your service wasn’t started, use the following command: sudo systemctl start monitĪlso, you can check your Monit version: sudo monit -version Output This is Monit version 5.26.0īuilt with ssl, with ipv6, with compression, with pam and with large filesĬopyright (C) 2001-2019 Tildeslash Ltd. └─1763 /usr/bin/monit -c /etc/monit/monitrc Loaded: loaded (/etc/init.d/monit generated)Īctive: active ( running) since Tue 19:03:28 CEST 42s ago rvice - LSB: service and resource monitoring daemon.To check the status of Monit, run the command below: sudo systemctl status monit -no-pager -l Output Then, use the following command to install the Monit: sudo apt install monit -y Check Monit StatusĪt this point, your Monit service should be activated on your server. First, update your local package index with the command below: # sudo apt update The Monit packages are available in the default Ubuntu 20.04 repository. To do this, you can follow our guide on Initial Server Setup with Ubuntu 20.04. To set up Monit manager, log in to your server as a non-root user with sudo privileges and set up a basic firewall. Steps To Install and Configure Monit Manager on Ubuntu 20.04 ![]()
0 Comments
Leave a Reply. |