SSD Nodes Learn Hosting plans →
How to do am Matt ConnorBy Matt Connor · Updated 2026-10-28

Uptime Kuma: monitor your site from another VPS

Set up Uptime Kuma with Docker to watch websites, ports, DNS and cron jobs from another VPS. E fit alert you by email or Telegram, with 256-512 MB RAM and public status page.

Wetín you dey build

One small container wey dey monitor your other servers and websites from outside, then tell you immediately when any one stop to respond, through email, Telegram, Discord or a webhook. Uptime Kuma na one Node process. For this setup, SQLite file dey back am. (v2 fit also run with embedded or external MariaDB.) E fit run well with 256-512 MB of RAM, and e give you live dashboard, history graphs and public status page. The installation na ten-line Compose file. The main thing na where you run am and whether your alerts don ever fire for test. Monitor wey you never confirm say e fit reach you worse pass no monitor at all: e go make you feel say you dey covered while e no dey monitor anything.

Run the monitor for somewhere wey outage no fit reach

This one decision fit make or spoil the whole thing, so e come first. No run Uptime Kuma for the same box wey e dey watch. If monitor dey for the server wey e dey monitor, the exact event wey you care about, like that box going down or running out of memory, go kill the monitor too, and you no go get any alert: silence from dead monitor go look exactly like "everything dey fine." Another hidden problem fit happen while the box still dey alive: monitor wey point to localhost dey share CPU with the workload, so load spike fit make the check itself timeout and change the target to down, na false alarm be that, while real users still dey get service fine.

So run Uptime Kuma for a different VPS from the one wey e dey watch, ideally for different provider or region, and make e reach your services the same way your users dey reach dem: through public internet, with hostname. One cheap instance dey enough, and one small monitoring VPS fit watch all your servers. This separation matter pass for the heavy apps wey you host, because something like PhotoPrism or Immich photo library fit keep CPU busy for hours while e dey index fresh import, and monitor wey dey share that hardware fit report say service dey down when e only dey busy. To detect if Kuma itself die, add push heartbeat from cron for another place.

Prerequisites and sizing

  • One fresh Ubuntu 24.04 VPS with Docker Engine and the Compose v2 plugin, wey you install from Docker own apt repository, no be the docker.io distro package, because that one dey behind.
  • 256 MB RAM fit run small number of monitors; 512 MB to 1 GB dey okay for dozens of monitors plus the reverse proxy, and CPU almost no dey work between checks.
  • One domain and DNS A record (for example, status.example.com wey point to the VPS), only if you want TLS and public status page. Private instance fit skip DNS and use VPN or SSH tunnel.
  • Outbound network access go wherever alerts dey go: SMTP to your mail provider, or HTTPS to Telegram and Discord.

Compose file

Put this for /srv/uptime-kuma/compose.yaml.

services:
  uptime-kuma:
    image: louislam/uptime-kuma:2
    container_name: uptime-kuma
    restart: unless-stopped
    ports:
      - "127.0.0.1:3001:3001"
    volumes:
      - kuma-data:/app/data

volumes:
  kuma-data:

Start am and monitor the first boot:

sudo mkdir -p /srv/uptime-kuma
# save the file above as /srv/uptime-kuma/compose.yaml, then:
cd /srv/uptime-kuma && sudo docker compose up -d
sudo docker compose logs -f uptime-kuma

Correct start go log Listening on 3001 and e go quiet. Three things for that file dey deliberate.

127.0.0.1:3001:3001, no be 3001:3001. Docker dey publish ports with DNAT rules wey e evaluate before ufw ever see the packet, so bare 3001:3001 go put your dashboard for public internet no matter wetin your ufw rules talk; na only rules wey you add to Docker own DOCKER-USER chain fit filter am. Binding to loopback keep am private, with only the reverse proxy exposed. E also mean say na only the host itself fit reach 3001: private instance wey no get proxy dey use the SSH tunnel wey show below, and to reach am through self-hosted WireGuard VPN you must publish the port for the server WireGuard address (for example 10.8.0.1:3001:3001) instead of 127.0.0.1.

A named volume for /app/data. Everything wey Uptime Kuma remember, the SQLite database, your monitors, notification settings and status-page logos, dey there. If you lose am, you go start from empty admin screen; na the only thing wey you must back up.

The image dey pinned to major tag, :2. Na the current stable line be that; check Docker Hub for the newest major before you copy am, and never follow moving tag like latest, wey the project dey deprecate. Major-version jump for this image dey run database migration wey you need trigger deliberately, with fresh backup ready, instead make e happen by surprise during routine pull.

One thing to note: /app/data must dey for filesystem wey support POSIX file locks. Local Docker volume dey okay; for NFS, the SQLite database fit corrupt and you go get SQLITE_BUSY and database disk image is malformed, so never use network share.

First run: create the admin account

Open the instance through your proxy for https://status.example.com, or use an SSH tunnel: run ssh -L 3001:127.0.0.1:3001 user@your-vps and open http://localhost:3001. For fresh v2 install, the first screen go ask which database to use; choose SQLite, wey dey keep everything for the /app/data volume and na wetin the backup and troubleshooting steps below dey assume. Next na setup form for administrator username and password; no default login dey. Choose real password: this dashboard dey see the internal addresses and tokens of everything wey you monitor. You forget am later? Reset am from the host, no be from browser:

sudo docker compose exec uptime-kuma npm run reset-password

Add your notification channels first, and test them

Set up alerts before you add monitors, so you fit attach one channel as you create each monitor. Go to Settings then Notifications then Setup Notification, and use each channel Test button to confirm say the message land, because notification wey you never test na the second most common reason setup fit fail silently.

Email (SMTP). Fill host, port, encryption, username, password, one From and one To. The usual combinations na 465 with "Secure" set to TLS/SSL, or 587 with STARTTLS; some servers still offer STARTTLS for 25, so use the port and mode wey your provider document. For Gmail and most providers wey get two-factor auth, you must generate an app password; normal account password go return Error: Invalid login: 535-5.7.8 Username and Password not accepted.

Telegram. Message @BotFather, send /newbot, then copy the bot token. To get your chat ID, message the new bot once, open https://api.telegram.org/bot<token>/getUpdates, and read chat.id from the JSON. Bot wey you never message first go get empty getUpdates, so e no get anywhere to send message.

Discord. For the channel, open Edit Channel then Integrations then Webhooks then New Webhook, copy the URL, and paste am as Discord notification.

Generic webhook. For anything else, like Slack incoming webhook, custom endpoint, or home-automation hook, the Webhook type go POST JSON payload to the URL wey you supply, and the bundled Apprise integration cover most of the ninety-odd other services for the list. If you no want third party sit between outage and your phone, pick the built-in ntfy type and point am to an ntfy server wey you run yourself, wey go push message go your handset through a channel wey you control from end to end.

Add monitors, one type at a time

Click Add New Monitor, pick one type, then set the Friendly Name, the Check Interval (60 seconds dey okay), the Retries (how many failures one after another before status become "down"; use 2 or 3 so one dropped packet no cause page), and the notifications wey go fire. Na these types you go use:

  • HTTP(s). Full URL. Status dey up when e receive accepted status code (200-299 by default; widen am under Accepted Status Codes if 301 or 401 dey normal for you). Na the main check for websites and APIs.
  • HTTP(s) - Keyword. Na the same request, but status go be up only if one string dey present for the body, or dey absent when Invert dey enabled. This one catch when site dey return 200 OK but dey render "Error establishing a database connection", even though plain HTTP check go call am healthy. E also fit check browser front end wey dey talk to separate backend, like one Halcyon video-store skin over Jellyfin, where page shell dey return 200 without problem but the media server behind am no reachable.
  • TCP Port. Basic TCP connection go one host and port, for services wey no be HTTP: SSH for 22, Postgres for 5432, SMTP server for 25, or game server.
  • Ping. ICMP echo: cheap way to check reachability and latency. But plenty networks and cloud firewalls dey drop ICMP, so red ping monitor fit mean "host down" or "provider blocks ping"; confirm am with TCP monitor.
  • DNS. E resolve record (A, AAAA, MX, TXT and others) against resolver wey you specify, and fit confirm the answer. This one fit catch registrar or DNS outage early.
  • Push. Na the inside-out monitor; we go cover am next.

Monitoring cron job with push (heartbeat) monitor

Every monitor wey dey above dey reach inside your service from outside. Push monitor dey work the other way: Uptime Kuma go wait, and your job go call am to talk say "I run." Na only this one fit honestly monitor backup or cron: HTTP check know say URL dey respond, but na only the job know say e complete.

Create monitor wey type Push. Uptime Kuma go generate unique URL like this:

https://status.example.com/api/push/j8Xa2Kd9Qe?status=up&msg=OK&ping=

Set Heartbeat Interval to how often the job dey run, plus small extra time. Then add one line for the end of the script, so e go fire only when job succeed:

#!/usr/bin/env bash
set -euo pipefail
# ... your backup or job runs here; set -e aborts on any failure ...
curl -fsS --retry 3 "https://status.example.com/api/push/j8Xa2Kd9Qe?status=up&msg=backup+ok&ping="

If the job fail, set -e go abort before curl; if the box dey down, e no go run too. For both cases, heartbeat go stop, and after interval-plus-retries window pass, Uptime Kuma go change monitor to down and alert you. Treat that push token like secret: anybody wey get am fit forge healthy heartbeat.

Build one public status page

Status page na the view wey customers dey see: which services dey up and their recent history, without exposing your dashboard. Go to Status Pages then New Status Page, give am name and slug (the public path, like /status/main), drag the monitors wey you want enter groups like "Websites" and "APIs", add logo and short description, then click Save. You fit also bind the page to its own domain so status.example.com go serve am directly.

Two things dey important: only add monitors wey you ready to make public, because status page dey show say service dey exist and whether e dey up; and dashboard still dey behind your login, while status page dey intentionally public and no need auth.

Put am behind reverse proxy with TLS, and pay attention to websockets

For public instance, put reverse proxy in front of the loopback-bound container for TLS and hostname. The important detail wey dey catch many people: Uptime Kuma UI na live Socket.IO app, so proxy must upgrade the WebSocket connection. If you miss am, page go load but e no go connect; dashboard go remain for "Connecting...", live heartbeats no go update, and browser console go show WebSocket connection to 'wss://.../socket.io/...' failed.

Install nginx and certbot, then write the vhost wey go proxy to the loopback port. Put am for port 80 for now and allow certbot add TLS later; the challenge, renewal timer and failure modes dey covered for issuing Let's Encrypt certificates with certbot and nginx.

sudo apt install -y nginx certbot python3-certbot-nginx

Save this as /etc/nginx/sites-available/status.example.com; na the two WebSocket lines dey matter:

server {
    listen 80;
    server_name status.example.com;

    location / {
        proxy_pass http://127.0.0.1:3001;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_read_timeout 3600s;
    }
}

Enable the site, test the config, then allow certbot rewrite the block to listen on 443, put the certificate inside, and add HTTP-to-HTTPS redirect:

sudo ln -s /etc/nginx/sites-available/status.example.com /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo certbot --nginx -d status.example.com

The Upgrade and Connection "upgrade" pair dey very important, and proxy_read_timeout 3600s dey stop nginx from tearing down the long-lived socket; certbot copies both enter the 443 block wey e generate. If you already run several containers behind one proxy, routing them through Traefik with automatic TLS go do the same work with container labels and forward WebSocket upgrades by default.

No use basic auth for the whole vhost, because that one go also lock public status page and the /api/push endpoint. Keep Uptime Kuma built-in login, add fail2ban watching for repeated failed logins if e dey face internet, and if dashboard no ever need be public, remove the proxy and reach am through SSH tunnel, or through VPN wey publish the port for the VPN address instead of loopback.

Monitoring when certificate go expire, done well

An HTTP(s) monitor fit also warn you before TLS certificate expire: tick Certificate Expiry Notification and Uptime Kuma go alert you some number of days before. Two mistakes fit make am misread am. Monitor with hostname, no be IP, because request wey no get SNI go receive the server default certificate and you go see Hostname/IP does not match certificate's altnames. And no tick Ignore TLS/SSL Error for monitor wey you want expiry warnings from: that toggle na for self-signed internal hosts (unable to verify the first certificate, DEPTH_ZERO_SELF_SIGNED_CERT), but e stop Uptime Kuma from checking the certificate at all, including expiry.

Backups: na one directory

Because everything dey inside /app/data, backup na copy of that volume wey you take while container dey stopped, so SQLite file go remain consistent:

cd /srv/uptime-kuma
sudo docker compose stop
sudo docker run --rm \
  -v uptime-kuma_kuma-data:/data \
  -v /var/backups/kuma:/backup \
  alpine tar czf /backup/kuma-$(date -u +%Y%m%dT%H%M%SZ).tgz -C /data .
sudo docker compose start

Confirm the real name of the volume with docker volume ls | grep kuma first, because Compose dey add project directory as prefix. Then copy the tarball go outside the box, because backup wey dey the same VPS na copy, e no be backup. To restore am, stop the stack, extract am inside empty /app/data volume, then start am.

Upgrades

Upgrades na image pull:

cd /srv/uptime-kuma
sudo docker compose pull
sudo docker compose up -d

The new container go run any database migration for the first start; monitor docker compose logs -f. Make the backup wey dey above before you pull, and stay within one major tag: moving from :1 go :2 go migrate the database, and the project's migration guide talk say interrupted migration mean say you must restore from backup and retry, so make backup first and read that guide and the release notes.

Failure modes, wey contain the strings wey you go see

False "down" for monitor wey dey point to localhost. Monitor go turn red with timeout of 48000ms exceeded or connect ETIMEDOUT, but service still dey answer from your laptop. If e dey target the same host wey Uptime Kuma dey run on, CPU or memory spike don starve the check, no be target. Move monitor go separate VPS and target public hostname.

connect ECONNREFUSED 127.0.0.1:443 (or any port). Nothing dey listen for that port: either service dey down, or you monitor localhost from inside container, where 127.0.0.1 na the container, no be your server. Monitor public hostname, no be loopback.

Invalid login: 535-5.7.8 Username and Password not accepted for email test. SMTP credentials no correct, or provider need app-specific password but e receive your account password. Generate app password and paste am.

connect ETIMEDOUT or queryA ETIMEDOUT <host> for email test. Port no correct, or provider dey block outbound SMTP. Confirm say 465 or 587 match the Secure/STARTTLS setting, and test from host with nc -vz smtp.example.com 587. Plenty providers dey block outbound 25, and some dey block submission ports until you ask dem.

self signed certificate or unable to verify the first certificate for email test. Your SMTP server dey present certificate wey Node no go trust; fix mail server certificate instead of covering the problem.

Dashboard stuck on "Connecting...", console dey show WebSocket connection ... failed. Reverse proxy no dey upgrade the WebSocket. Add Upgrade and Connection "upgrade" headers for nginx, or use proxy wey dey forward dem by default, like Traefik or Caddy. HTML loads because na normal HTTP GET be that; na only live socket need the upgrade.

Cert-expiry monitor no dey warn, or e dey warn wrong. Either Ignore TLS/SSL Error dey ticked, wey disable cert checking, or monitor dey target IP and dey read wrong certificate because SNI no dey present, showing Hostname/IP does not match certificate's altnames. Untick ignore, and monitor by hostname.

SQLITE_BUSY or database disk image is malformed for logs. /app/data volume dey on filesystem wey no get proper file locking, usually NFS; move am to local Docker volume and restore from backup.

FAQ

Where I suppose run my uptime monitor?

For another server wey no be the ones e dey watch, ideally another provider or region, and e go reach dem by hostname through public internet just as your users dey do. If monitor dey share box with the targets, the outage wey kill server go kill monitor too, and overloaded host fit make am report "down" for services wey dey okay. One small separate VPS go avoid both problems.

How I fit get alerts for Telegram or email?

Add the channel under Settings then Notifications, then attach am to each monitor. For Telegram, create bot with @BotFather and read chat.id from https://api.telegram.org/bot<token>/getUpdates; for email, use 465 for SSL or 587 for STARTTLS with app password if your provider dey use two-factor auth. Press Test and confirm say the message arrive before you rely on am.

Uptime Kuma fit monitor cron job or backup script?

Yes, na the Push monitor: Uptime Kuma go give you URL and you curl am for the end of the script so e go fire only when the script succeed. If the job fail or the box dey down, the heartbeat no go arrive, and you go get alert after the interval pass. Na the only reliable way to know say scheduled job really run, because external check no fit see wetin dey happen inside am.

Uptime Kuma vs Zabbix, which one I suppose run?

Uptime Kuma answer "e dey up from outside, and e alert me?" within ten minutes with almost no resources, plus status page. E no collect deep metrics like CPU, memory, and disk trends, or thresholds across the whole fleet; for that, full Zabbix monitoring server na the heavier, agent-based tool, and plenty people dey run both. You still dey decide wetin to run at all? our roundup of wetin to self-host for 2026 go show where monitoring fit inside the bigger picture.

Dis article help you?

#uptime-kuma#monitoring#docker#self-hosting#status-page