We hope this tutorial was enough Helpful. – To access the Monit web interface, open the browser, go to the ip of the server and enter your credentials that you configured before. – To take effect of changes, type the following command to reload the monit daemon: – Once you finish the configuration, test the monit syntax using the following command # the person who will receive notification emails # Monit by default uses the following format for alerts if the the mail-formatįrom: from: monit alert - $EVENT $SERVICE – To configure Monit to send alert emails, find and uncomment lines:In this example we configured Monit to work with with Gmail as mail server Use address server_ip # only accept connection from localhostĪllow 0.0.0.0/0.0.0.0 # allow localhost to connect to the server andĪllow admin:monit # require user 'admin' with password 'monit' – To configure the web interface, find and uncomment the following lines: Set daemon 60 # check services at 30 seconds intervals # Start Monit in the background (run as a daemon): – By default, Monit configured to check services are running every 30 secondes, in this tuttorial we will set it up to 1 minutes. – You can Check the Monit status by using the following command: – Start and Enable Monit at system boot by using the following command: – Install Monit using the following command: – Configure EPEL repo to download the latest Monit package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |