Monit watches processes, disk and ports and can restart a service or alert you when something dies. Lightweight for a single VPS.
Steps
Install and start Monit:
sudo apt updatesudo apt install -y monitsudo systemctl enable --now monitEnable the local HTTP UI in /etc/monit/monitrc (uncomment set httpd and set user/password), then reload:
sudo nano /etc/monit/monitrcsudo monit reloadsudo monit statusExample nginx check (file under /etc/monit/conf-enabled/):
sudo nano /etc/monit/conf-enabled/nginxcheck process nginx with pidfile /run/nginx.pidstart program = "/bin/systemctl start nginx"stop program = "/bin/systemctl stop nginx"if failed port 80 protocol http then restartsudo monit reload
Tips
- Do not expose Monit’s HTTP port to the internet — use an SSH tunnel or bind to 127.0.0.1.
- Start with 1–2 critical checks (web, DB) before monitoring everything.
ext step
A stable VPS for your services: Deploy your Cloud VPS.