/etc/mailname
./etc/monit/monitrc
./etc/monit/monitrc
file or via individual files in /etc/monit/conf.d/
. In this tutorial, individual files will be created under the /etc/monit/conf.d/
directory. /etc/monit/conf.d/lemp-services
. Using the following entries, Monit will watch Nginx, MySQL and PHP-FPM, and restart these services if they are abnormally stopped for any reason./etc/monit/conf.d/lemp-services
. The additions we’ll make below are shown in red and we’ll tell Monit to restart Nginx and PHP-FPM if HTTP connections are no longer available. Additionally, we will have Monit restart MySQL if the socket is unavailable./etc/monit/conf.d/lemp-external
file to remotely check our LEMP stack at remote-example.com.https://remote-example.com/healthcheck
./etc/monit/monitrc
for editing in Nano./var/log/monit.log
. This will give you more information as to the nature of the problem.