Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Install Monit on Ubuntu

Monit watches processes, disk and ports and can restart a service or alert you when something dies. Lightweight for a single VPS.

Steps

  1. Install and start Monit:

    sudo apt update
    sudo apt install -y monit
    sudo systemctl enable --now monit
  2. Enable the local HTTP UI in /etc/monit/monitrc (uncomment set httpd and set user/password), then reload:

    sudo nano /etc/monit/monitrc
    sudo monit reload
    sudo monit status
  3. Example nginx check (file under /etc/monit/conf-enabled/):

    sudo nano /etc/monit/conf-enabled/nginx
    check process nginx with pidfile /run/nginx.pid
      start program = "/bin/systemctl start nginx"
      stop program  = "/bin/systemctl stop nginx"
      if failed port 80 protocol http then restart
    sudo 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.

Related guides