How to monitor and restart services with Monit

In this article, we will show you how to install and configure Monit on Ubuntu 16.04. Monit is an open source tool for monitoring and managing, processes, files, directories and file systems on a UNIX system. You can use Monit to stop or restart your web server if it is using too much resources, to monitor daemon processes, to monitor files, directories and get an email alert or perform a predefined action if they change. With Monit you can also monitor your network connections, CPU usage, RAM memory load average and much more. This guide should work on other Linux VPS systems as well but was tested and written for an Ubuntu 16.04 VPS.

Read more