Monit is a opensource monitoring tool on Unix system. The simplest use case would be restarting your service if there is failure.
On Ubuntu, simply run apt-get to install Monit.
sudo apt-get install monit
The Monit folder is at /etc/monit. Before you can read anything from Monit, create the /etc/monit/conf.d/monit.conf in order to setup the Monit web interface.
set httpd port 2812 and use address localhost allow localhost