Latest

Monitoring a website or service with Uptime Kuma: instant alerts when something goes down

Finding out your website, mail or NAS is unreachable because a customer tells you is the worst way. Uptime Kuma is an open-source monitor that checks sites, ports, DNS and certificates and alerts you on Telegram, email or apps. Installing it with Docker, the checks to set up and where to run it so it really works.

By 4 min read
Monitoring a site with Uptime Kuma

A website can stay unreachable for hours without anyone noticing, until a customer phones. The same goes for mail, the office VPN or the home NAS. Uptime Kuma is an open-source program that checks your services at regular intervals and alerts you as soon as something stops responding. It installs in minutes and is managed from a simple web interface.

What it can check

Check type What it verifies Example
HTTP(S) That the page answers with a success code within a time limit The website home page
Keyword That the page contains (or doesn’t contain) some text The company name on the home page: also catches error pages that answer “200”
TCP port That a port accepts connections The mail server on port 587
Ping That a device responds on the network A branch office router
DNS That a record returns the expected value The domain’s A or MX record
TLS certificate How many days until expiry Alerts at 14 and 7 days
Push That a system “calls” Uptime Kuma at regular intervals The nightly backup that sends a signal when it finishes

The push check is the most underrated: if the backup doesn’t start or hangs, the signal doesn’t arrive and you get an alert. It is the simplest way to know your backups really run, as we recommend in the guide on the 3-2-1 backup rule.

Where to run it: the most important rule

A monitor installed on the same network as what it checks cannot warn you when that network goes down: if the home connection fails, so does the monitor. The options:

  • A small virtual server at a provider, outside your network: the best solution for checking your website and public services.
  • A Raspberry Pi or the home NAS: fine for checking internal devices (printers, cameras, NAS) and public services, knowing it won’t warn you of a home line failure.
  • Both, checking each other: the most robust solution.

Installing with Docker

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

Then open http://server-address:3001 and create the admin user. The uptime-kuma volume holds the configuration and history: include it in your backups. Check the official documentation for the recommended image tag for the stable version, which changes with major releases.

If the server is reachable from the internet, don’t expose port 3001 directly: publish the interface behind a reverse proxy with HTTPS (for example Nginx Proxy Manager), or reach it only through a VPN. Turn on two-factor authentication in Uptime Kuma’s security settings.

Setting up checks without false alarms

Setting Recommended value Why
Interval 60 seconds for important services, 5 minutes for others More often is unnecessary and loads the checked server
Retries before alerting 2–3 A single network glitch shouldn’t wake you at night
Timeout 10–20 seconds Enough for a slow site, not so long it delays the alarm
Accepted codes 200–299 Add redirects only if they are expected
Maintenance windows During planned updates No alerts when downtime is intentional

Notifications

Uptime Kuma supports dozens of channels: email over SMTP, Telegram, ntfy, Discord, Slack, Microsoft Teams, Pushover and more. Two practical tips:

  1. Set up at least two channels: if the problem is the mail server itself, an email alert will never arrive.
  2. For Telegram create a dedicated bot and a group with the people who need to act, instead of using a personal account.

The status page

Uptime Kuma can publish a status page with chosen services, availability history and maintenance notices. Customers and colleagues can check it before calling. Show only public services, with no internal addresses.

A starting setup for a small business

  • Website: HTTP(S) with keyword, every minute, 3 retries.
  • Website certificate: alert at 14 days.
  • Mail: TCP port 587 or 465 on the SMTP server and port 993 for IMAP.
  • Domain: DNS check of the MX record.
  • Nightly backup: push check with a 25-hour interval.
  • Notifications: Telegram and email to an address with another provider.

When a check fails, start the analysis with the commands in the guide on ping, tracert and nslookup and, for domain records, with our DNS and email diagnostics.

Sources