![]() ![]() # If there are no errors, you will receive the following feedback: ![]() To check configuration files are without any errors use the following command: sudo monit -t Save the file by pressing Ctrl+X and then type – Y and hit the Enter key. ![]() 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 in the screenshot. There remove the # tag for the following lines. It is better to create a new one – nano /etc/monit/conf.d/ for the desired settings.īy default, port 2812 to communicate Monit will be disabled and has to be enabled by editing its configuration file. We recommend that you do not make your settings directly in this file. There are numerous sample settings, some of which are commented out, which are self-explanatory, or whose comments contain help texts. The Monit program can be configured using the /etc/monit/monitrc file. This tool package is there on Ubuntu’s repo and it doesn’t need any third-party repository help. Open the command terminal and simply type the below-given command. Add services to Monitor in Monit M/Monit installation on Ubuntu 20.04 Linux ![]()
0 Comments
Leave a Reply. |