Uptime Kuma is a free, self-hosted monitoring tool. It checks your sites and servers on a fixed interval, keeps the history, alerts you when a check fails and publishes a status page. Version 2 has been stable since 2.0.0 in October 2025; we tested 2.5.9, released on October 31, 2026.
For this article we installed Kuma on an hourly Nano behind HTTPS, pointed five monitors at a second Nano, then caused real outages on that second server. The alert delays and memory figures below come from that test.
1. Where to run Kuma
One rule matters more than the rest: monitor from a different machine than the one you are watching. A Kuma installed on your website's server goes down with it and tells no one. A Nano (1 vCPU, 2 GB, 20 GB disk) is plenty: 8.50 CAD a month, or 0.018 CAD an hour to try it. Our catalogue also has a ready-made Uptime Kuma image; here we installed it by hand on the Docker image (Ubuntu 24.04 with Docker Engine) to show every setting.
2. Install Uptime Kuma 2 behind HTTPS
Kuma listens on port 3001 over plain HTTP. Caddy sits in front and gets the Let's
Encrypt certificate by itself. Every VM already has a hostname (of the form
vm-xxxxxxxx.ffxf.zone, shown in the console); use it, or your own domain
with an A record pointing at the machine.
sudo mkdir -p /opt/kuma && cd /opt/kuma
sudo tee compose.yml > /dev/null <<'EOF'
services:
kuma:
image: louislam/uptime-kuma:2-slim
restart: unless-stopped
volumes:
- kuma-data:/app/data
ports:
- "127.0.0.1:3001:3001"
caddy:
image: caddy:2
restart: unless-stopped
network_mode: host
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
volumes:
kuma-data:
caddy-data:
EOF
sudo tee Caddyfile > /dev/null <<'EOF'
status.example.com {
reverse_proxy 127.0.0.1:3001
}
EOF
sudo docker compose up -d
Port 3001 is only published on 127.0.0.1: Docker bypasses UFW (see
Docker on a VPS), and only Caddy needs to
reach it. Pulling both images took 28 seconds, and the certificate was in place less
than a minute after startup.
Why 2-slim? The 2 tag also bundles MariaDB and Chromium (for
the "real browser" monitor): 617 MB compressed on Docker Hub, against 184 MB for the
slim image, which takes 861 MB once unpacked on disk. For a few dozen monitors, the
slim image's SQLite database is enough.
Create the account right away. On first launch, Kuma 2 first asks
which database to use (pick SQLite), then for the admin account. Until you do,
anyone who reaches the address can create it in your place. Do it within a minute of
up -d.
3. The five monitors
Each one is created with "Add New Monitor". These are the ones from the test, all aimed at the second Nano except the certificate check:
| Type | Target | What it checks |
|---|---|---|
| HTTP(S) - Keyword | http://203.0.113.10/, keyword "Bonjour Kuma" | the page answers 2xx and contains the expected text |
| TCP Port | same machine, port 22 | SSH accepts connections |
| Ping | same machine | the machine answers ICMP |
| HTTP(S) | https://ffxf.net/, "Certificate Expiry Notification" ticked | the response, plus the certificate's remaining days |
| Push | a URL generated by Kuma | a scheduled job actually ran |
A keyword beats a bare 200: an error page from your application, or a default page after a failed upgrade, often answers 200 too. Pick text that only appears on the real page.
For the certificate, Kuma read 86 days left on ffxf.net. By default it
warns at 21, 14 and 7 days (Settings, Notifications). With automatic renewal those
alerts should never fire; if one does, renewal is broken and you still have three
weeks to fix it.
4. The push monitor: a cron job that calls Kuma
The other monitors go and fetch. A push monitor works the other way round: Kuma waits
for a call and alerts if none arrives within the interval. It is the right way to watch
a nightly backup or any script. Kuma shows the URL to call when you create the monitor;
put the call after the job, with &&, so a failed
script is not reported as a success:
# /etc/cron.d/backup
30 3 * * * root /usr/local/bin/backup.sh && curl -fsS -m 10 --retry 3 "https://status.example.com/api/push/YOUR_TOKEN?status=up&msg=OK&ping=" > /dev/null
Set the monitor's interval slightly above the job's: 25 hours for a daily job. In our test the interval was 120 seconds, and the monitor went down 121 seconds after the last call it received.
The test also caught a real problem. Our test job called Kuma every minute, yet the
monitor never received a second call: the Debian 13 image did not ship
cron (our image includes it now), so the file in /etc/cron.d did nothing. After
sudo apt install cron, the next call arrived on the minute. That is
exactly what a push monitor is for: a job that never runs raises no error.
5. A real outage, timed
Settings for the HTTP, TCP and ping monitors during the test: a 30-second interval,
and one retry after 20 seconds before declaring an outage. The alert time is when a
small webhook receiver got the message (more on that below). First scenario:
sudo systemctl stop nginx on the watched machine, then
start as soon as the alert landed.
| Run | Stop → "Down" alert | Restart → "Up" alert |
|---|---|---|
| 1 | 30 s | 29 s |
| 2 | 23 s | 29 s |
| 3 | 38 s | 29 s |
The spread depends on where the outage falls in the cycle. In the first run, the next check came 9 seconds after the stop and put the monitor in "pending"; the retry 20 seconds later declared it down, and the alert left at once. The worst case is easy to work out: interval + retries × retry interval, so 30 + 20 = 50 seconds here. Recovery waits for the next regular check, hence the steady 29 seconds.
Second scenario: the whole machine stopped through the API (the stop
action), like a host failure. Alerts arrived 45 seconds (SSH), 48 seconds (ping) and
57 seconds (keyword) after the stop. Each monitor runs on its own cycle, and Kuma's
ping sends several packets before it concludes, so expect up to a minute with these
settings. When the machine came back, ping recovered 5 seconds after it answered
again, the HTTP check 23 seconds after, SSH 31 seconds after.
With the values a new monitor gets by default (60 seconds, no retry), the alert fires on the first failure, at most 60 seconds after the outage, but a single network blip is enough to wake you up. One retry before alerting is a good middle ground.
6. Notifications
Kuma supports dozens of services. We tested the webhook, the easiest to verify: Kuma
sends a JSON POST with three fields, msg, monitor and
heartbeat. These are the messages received during the test:
[Site web (mot-clé)] [🔴 Down] connect ECONNREFUSED 203.0.113.10:80
[Site web (mot-clé)] [✅ Up] 200 - OK, keyword is found
[SSH (port 22)] [🔴 Down] Connection failed
[Sauvegarde nocturne (push)] [🔴 Down] No heartbeat in the time window
A receiver of a few lines is enough to try it, for instance Python's
http.server, or an online webhook testing service. For everyday use:
- Discord: in Discord, Edit Channel, Integrations, Webhooks, create a webhook and paste its URL into a Discord-type notification.
- Email: the "Email (SMTP)" type, with the server, port, account and password of a sending mailbox.
A Discord webhook URL and an SMTP password are secrets: whoever holds them can post in your channel or send mail as you. Keep them out of tickets and screenshots. Every notification has a "Test" button that sends a trial message.
The test also showed what happens with a badly placed receiver. Our first webhook ran
on the watched machine: when we stopped it, Kuma logged
Cannot send notification to Webhook test for every alert. Only the second
webhook, hosted on Kuma's own machine, got the alerts. The alert channel must not
depend on what it watches.
7. The public status page
"Status Pages", "New Status Page": a title, a slug (etat in our test),
then pick the monitors to show. The page is public at
https://status.example.com/status/etat, no account needed, with each
monitor's history and, if you tick the option, the certificates' remaining days. The
same data is available as JSON, handy for a dashboard:
curl -s https://status.example.com/api/status-page/heartbeat/etat | jq '.uptimeList'
Only show what your customers should see: a monitor's name and target can give away an internal address.
8. What Kuma uses
Measured with docker stats on the Nano:
| Situation | Kuma memory | Caddy | Nano memory available |
|---|---|---|---|
| 5 monitors, 2 minutes after start | 123 MB | 13 MB | 1,380 MB |
| 5 monitors, 20 minutes | 132 MB | 12 MB | 1,392 MB |
| 30 monitors, 12 minutes after adding 25 HTTP monitors | 137 MB | 12 MB | 1,387 MB |
CPU stayed under 3% outside startup, and the SQLite database weighed 4.5 MB with 30 monitors. A Nano can watch far more than this test, and run something else alongside.
9. Who watches the watcher?
Kuma cannot tell you about its own outage. Two simple precautions:
- Keep it outside the infrastructure it monitors: another machine at the very least, ideally another network or provider for your most important services. A Kuma in Montréal sees your Montréal servers fine, but says nothing about what a visitor in Vancouver sees.
- Have Kuma itself watched from a second vantage point: another Kuma checking the status page, or a reverse push, meaning a cron job on another server that calls Kuma and alerts you when it gets no answer.
Back up the kuma-data volume too: it holds every monitor's configuration
and the history. A patched, locked-down
machine completes the setup; with Caddy in front, only ports 80 and 443 need to be
open to everyone, with SSH kept to your own addresses, which a cloud firewall
enforces without touching the machine.