In the /etc/monit/conf-available/ there are several ready-made files for various common server services such as: acpid, at, mdadm, mysql, openntpd, pdns-recursor, rsyslog, snmpd,Īpache2, cron, memcached, nginx, openssh-server, postfix and smartmontools. You will see the following screen: Monit Service Manager Add Services In Monit on Ubuntu 20.04Īt this point, you can create a service file for an application to get monitored or can use the pre-configured ones available in the M/Monit folder. Enter the admin user and password you have defined in the Monit config file and click Sign in. Reload the firewall to apply the new rules: sudo ufw reload Access Monit Service Manager Web InterfaceĪt this point, you can access your Monit web interface by typing your server’s IP address in your web browser followed by 2812: your-server-ip-address:2812 To do this, run the command below: sudo ufw allow 2812 To apply the changes, restart the service: sudo systemctl restart monitĪlso, you can check that everything is working correctly by using the command below: sudo monit status Outputĭata collected Tue, 19:08:14 Configure Firewall for MonitĪt this point, you need to allow port 2812 through the UFW firewall. 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 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |