November 26, 2026

Uptime Kuma: Self-Hosted Uptime Monitoring and Its Blind Spot

Monitoring dashboard on a wall screen with green status bars and one red bar above a small home server

maxretries: 0. That line sits in the default settings for every new monitor in the Uptime Kuma source code at version 2.5.8, committed at 01:01 on October 27, 2026 in UTC+8 (still October 26 in UTC) and pulled for this post. It means one failed check flips a monitor to down and fires the alert, with no second opinion. Uptime Kuma is a self-hosted dashboard that pings, fetches and listens for the services on a home lab or small business network, and most of what makes it useful or noisy lives in a handful of defaults like that one.

Video: WunderTech on YouTube

What Uptime Kuma is and how it runs

One container, one port, one folder of state

The project’s README at the 2.5.8 tag describes it as an easy-to-use self-hosted monitoring tool and gives a one-line install:

docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:2

The web interface comes up on port 3001. Everything the app knows (monitors, history, notification settings) lives under /app/data, which is why that -v flag matters more than anything else in the command. Read the source and the reason is visible: server/database.js at the 2.5.8 tag branches on three database types, sqlite, mariadb and embedded-mariadb, and the simple Docker setup keeps its database inside that data folder.

The README also carries a warning in capital letters: file systems like NFS are NOT supported, and the data should go on a local directory or volume. A database file on a network share is a boiler on a wobbly floor. It runs fine until something shifts.

Behind a reverse proxy, the dashboard needs WebSockets. The project wiki says the proxy needs two more headers “Upgrade” and “Connection” to accept them; its Caddy example is a single reverse_proxy 127.0.0.1:3001 line with no extra header directives. Anyone who has fought with certificates on a proxy will recognize the territory from the x9m8 Certbot troubleshooting post.

Phone on a nightstand lighting up with a server-down notification in the middle of the night

Monitor types, read from the source

The README lists ten; the code folder holds more

The README’s feature list names HTTP(s), TCP, HTTP(s) keyword, HTTP(s) JSON query, WebSocket, ping, DNS record, push, Steam game server and Docker containers, and it advertises 90+ notification services. The shipped code goes further. On a test container, the repository was cloned and checked out at the 2.5.8 tag:

$ git log -1 --format='%h %cd' --date=iso
0bd417b9 2026-10-27 01:01:19 +0800

$ ls server/monitor-types
dns.js gamedig.js globalping.js group.js grpc.js manual.js mongodb.js
monitor-type.js mqtt.js mssql.js mysql.js ntp.js oracledb.js pm2.js
postgres.js rabbitmq.js real-browser-monitor-type.js redis.js sftp.js
sip-options.js smtp.js snmp.js steam.js system-service.js
tailscale-ping.js tcp.js websocket-upgrade.js

$ ls server/notification-providers | grep -v '^notification-provider.js$' | wc -l
108

That is 27 files in the monitor-types folder (one is the base class) on top of the HTTP, keyword, ping and push logic that lives in the main monitor model, and 108 notification provider files, which squares with the README’s “90+” claim. Database monitors for Postgres, MySQL, SQL Server, MongoDB and Redis mean a check can confirm the database answers a query, not merely that its port is open.

Practical sorting for a home lab:

  • HTTP(s) and keyword for web apps. A keyword check catches the page that returns 200 with an error message in the body.
  • TCP port for services that do not speak HTTP. If a port check fails and nothing seems to own the port, the commands in the x9m8 post on finding what is using a port are the next step.
  • DNS record for the resolver itself; the x9m8 dig troubleshooting post covers what to do once it goes red.
  • Docker container status, which needs access to the Docker daemon (more on that below).
  • Push, which flips the direction: the monitored job calls Uptime Kuma, and silence is the failure.

Push monitors and what the code does with a heartbeat

Silence becomes a signal

A push monitor gives each job a URL with a secret token. The route in server/routers/api-router.js at 2.5.8 is router.all("/api/push/:pushToken", ...), and its first lines set the defaults:

let msg = request.query.msg || "OK";
let ping = parseFloat(request.query.ping) || null;
let statusString = request.query.status || "up";
const statusFromParam = statusString === "up" ? UP : DOWN;

Any status string other than exactly up is recorded as down. A nightly backup script can therefore report its own failure, and a missing call reports the failure for it. In the monitor model, the push check compares the time since the last beat against the heartbeat interval plus a one-second buffer the code comments as accommodating clock differences. A backup job ends with something like:

curl -fsS "https://kuma.example.lan/api/push/TOKEN?status=up&msg=backup%20ok"

and on its error path sends status=down with a short message. The token is a credential; the code generates it as a 32-character random string, and anyone who has it can mark the job healthy.

Boiler room gauge and indicator lamp, a metaphor for a monitor that needs its own watcher

Notifications, retries and alert latency

The arithmetic of being woken up too early or too late

Defaults from the same EditMonitor.vue file at 2.5.8: interval: 60, retryInterval: 60, resendInterval: 0 and maxretries: 0. The request timeout, when left at zero, is treated as 80 percent of the interval; the code’s clamp function carries the comment limit to 80% of interval. In the retry logic in determineStatus, a failed check with retries remaining sets the monitor to PENDING instead of DOWN, and the notification goes out only when the retries run out.

That makes alert latency something to calculate before an outage. A simple model in Python: the service dies right after a good check, the next check waits a full interval, then times out, then each retry waits its own interval and can time out too.

$ python3 kuma_alert.py
config                        timeout  worst case
defaults (60s, 0 retries)          48s       108s  (1.8 min)
60s, 3 retries @60s                48s       432s  (7.2 min)
20s, 3 retries @20s                16s       144s  (2.4 min)
300s, 2 retries @60s              240s      1140s  (19.0 min)

With defaults, a dead service produces a notification in under two minutes, and so does a router hiccup that lasts four seconds. Three retries at one minute cut the false alarms and push worst-case detection past seven minutes. A five-minute interval with two retries leaves a gap of almost twenty minutes, which is fine for a media server and a long time for a front door camera. The source’s validation sets a floor of one second for the interval (MIN_INTERVAL_SECOND = 1), while the README’s feature list speaks of 20-second intervals and the edit page asks for a confirmation before saving anything shorter, so the short end is a policy choice more than a technical limit.

The resend default has a quieter cost. With resendInterval at zero, a monitor that stays down sends one alert and goes quiet; the push route’s code resends only when the counter reaches a positive resend interval. One message on a phone at 2 a.m. is easy to swipe away.

Where people get burned

The checks are rarely the problem; the placement usually is

Mounting the Docker socket and exposing the dashboard. The wiki’s Docker monitoring page tells users to mount /var/run/docker.sock and then warns that this gives that full control over the Docker daemon on the host, adding that it is NOT recommended to expose Uptime Kuma to the Internet with that monitor type. A public status page and a mounted socket on the same container is a front door with the master key taped to it.

False downs from container networking. The troubleshooting page’s first entry is a service that reports down but can be reached, and it notes that docker has more than one network type. The fix it suggests is to get a shell inside the container and test with ping and curl from there. The same page says IPv6 is not supported out of the box on Docker.

The data folder on NFS. The README’s capital letters, quoted earlier, exist because a SQLite file on a network share is the setup it refuses to support.

Retries at zero. A single failed check is enough to page someone, so a phone that buzzes every time the ISP blinks usually traces back to that untouched default.

Dark home network closet during a power outage with the monitoring server offline alongside everything else

Who watches the watcher

A monitor on the same box as everything else dies with everything else

A home lab often runs Uptime Kuma in a container on the same server as the services it watches, on the same power strip, behind the same router. When that server loses power, every monitor stops at once and not one alert goes out, because the thing that sends alerts is in the dark too. The dashboard shows green right up to the moment nobody can load it.

The cure is a check that lives somewhere else. One pattern inverts the push idea: the Uptime Kuma host sends its own heartbeat outward to an external dead man’s switch. Healthchecks.io describes its service as one that listens for HTTP requests (“pings”) from your cron jobs and scheduled tasks and raises an alert as soon as a ping does not arrive on time, with a grace time that is the additional time to wait before sending an alert when a check is late. Its documentation also has a self-hosted section, which helps only if that self-hosted copy runs on a different network. A second Kuma instance on a cheap VPS that watches the first one works on the same principle. So does a plain cron job on another machine that fetches the dashboard and emails on failure.

The case against all of this is real, and it is strongest for small setups. A home lab with three services and one user may get more value from noticing that the movie server is down at dinner than from a monitoring stack that needs its own monitoring, its own updates and its own backups. Every added watcher is one more thing to patch, which is why the x9m8 post on unattended-upgrades belongs in the same toolbox, and the setup in the x9m8 Compose walkthrough is the natural place to add Kuma as one more service.

The external check has a blind spot of its own. If the Kuma host and the outside watcher both depend on the same internet line, a cable cut in the street produces an alert that arrives only after the line comes back. Somewhere at the bottom of every monitoring chain is one machine nobody is watching.

Where does the last link in your monitoring chain live, and what happens when its power goes out?

Sources

  • Uptime Kuma README (GitHub): https://github.com/louislam/uptime-kuma
  • Uptime Kuma README at tag 2.5.8: https://github.com/louislam/uptime-kuma/blob/2.5.8/README.md
  • Uptime Kuma wiki, Reverse Proxy: https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy
  • Uptime Kuma wiki, How to Monitor Docker Containers: https://github.com/louislam/uptime-kuma/wiki/How-to-Monitor-Docker-Containers
  • Uptime Kuma wiki, Troubleshooting: https://github.com/louislam/uptime-kuma/wiki/Troubleshooting
  • Uptime Kuma source at tag 2.5.8 (server/routers/api-router.js, server/model/monitor.js, src/pages/EditMonitor.vue, src/util.ts, server/database.js): https://github.com/louislam/uptime-kuma/tree/2.5.8
  • Healthchecks.io documentation: https://healthchecks.io/docs/
  • x9m8, Certbot renewal failed: https://x9m8.com/certbot-renewal-failed-troubleshooting/
  • x9m8, Find what is using a port on Linux: https://x9m8.com/find-what-is-using-a-port-linux/
  • x9m8, DNS troubleshooting with dig: https://x9m8.com/dig-dns-troubleshooting/
  • x9m8, Unattended-upgrades: https://x9m8.com/unattended-upgrades-automatic-security-updates/
  • x9m8, Docker Compose self-hosting: https://x9m8.com/docker-compose-self-host-service/

487 Posts

Peter Kalafatis writes and edits X9M8. He holds a bachelor's degree from LIU Post and a master's in Media Studies from The New School, with academic work in the philosophy of science, human behavior, AI, and memetics.

View All Posts

Leave a Reply

Your email address will not be published. Required fields are marked *