How to Set Up Health Checks for Your Website with Uptime Kuma and Telegram

Your website can go down at 3 a.m. and nobody notices until a visitor complains the next morning. That gap between a failure and someone finding out is exactly what Uptime Kuma health checks close. Uptime Kuma is a free, self-hosted monitoring tool that tests your sites on a schedule and alerts you the moment something stops responding. Paired with Telegram, it turns your phone into a pager for your VPS, so a crashed PHP-FPM pool or an expired certificate reaches you within a minute. This guide covers the setup where Uptime Kuma already runs: HTTP monitors with keyword matching, heartbeat monitors for cron jobs and backups, Telegram notifications, and the settings that keep false alerts quiet.

What Uptime Kuma Health Checks Actually Monitor

A health check is a small, repeated test: Uptime Kuma runs it on a timer, records the result, and raises an alert when it fails a set number of times in a row. Each monitor type answers a different question. An HTTP(s) monitor asks whether the URL answers at all. A keyword monitor asks whether the page still contains a word that proves the app rendered. A ping monitor asks whether the host is reachable. A TCP port monitor asks whether a specific port is open, like 443 or 3306. A heartbeat monitor asks whether a scheduled job reported in on time.

That distinction matters. A plain HTTP monitor only proves the server answered. A keyword monitor proves WordPress actually rendered the page instead of serving a white screen with a 200 status code. A PHP fatal error can still return 200, and only a keyword check catches it. If you want a fuller picture of what to watch on a WordPress install, our guide on how to monitor WordPress uptime from your VPS covers the checks that matter most for that stack.

What You Need Before You Start

Before you start, make sure Uptime Kuma is running. If it is not installed yet, follow our guide to install Uptime Kuma on a VPS with Docker; the install takes about ten minutes on a 1 GB server. You also need a Telegram account and a bot token from BotFather, plus the list of URLs you want to watch: your homepage, your login page, and any API endpoint your visitors depend on.

Step 1: Add an HTTP Monitor With Keyword Matching

Start with your homepage. In the dashboard, click Add New Monitor and pick HTTP(s). Enter the full URL and set the interval to 60 seconds. Leave retries at 2, so Uptime Kuma only calls the site down after two failed checks in a row. Then fill in the Keyword field with a word or short phrase that only appears when the page renders fully, such as a line from your footer. Uptime Kuma marks the check as failed if the page loads but the keyword is missing, which is how you catch the white-screen case.

Do not pick a word that appears on error pages too. A generic word like “the” or “home” can show up on a server error page, and then the monitor reports the site as up while visitors see an error. Repeat the same setup for your login page and one inner page, such as a checkout page, so a broken database connection on one part of the site does not hide behind a healthy homepage.

Step 2: Add a Heartbeat Monitor for Cron Jobs and Backups

Some failures never touch a URL. A nightly backup can stop running, a certificate renewal can fail silently, or a WordPress cron job can stall, and no HTTP monitor will ever notice. That is the job of an uptime kuma heartbeat monitor. Add a new monitor, pick Heartbeat as the type, and set the interval to match how often the job runs, for example every 24 hours for a nightly backup. Uptime Kuma gives you a push URL. Add one line to the end of your job script that calls that URL when the job finishes:

curl -fsS -m 10 https://status.example.com/api/push/AbCdEfGhIjKlMnOp > /dev/null

If the job never calls the URL, Uptime Kuma marks the monitor down after the interval plus a grace period you set. Give long jobs a generous grace period: a backup that normally takes 20 minutes should get at least 60 minutes, or a slow night will page you for a job that was still working. Heartbeat monitors also fit database dumps and log rotation scripts. Anything that should happen on a schedule and fails quietly belongs here.

Step 3: Connect Telegram Notifications

Monitoring without alerts is just a dashboard nobody opens. Uptime Kuma Telegram notifications are the fastest way to hear about a failure, because Telegram reaches your phone in seconds and works even when your email is hosted on the same server that just went down. Create a bot first: open Telegram, search for @BotFather, send /newbot, and follow the prompts to name it. BotFather replies with a token made of numbers, a colon, and letters. Keep that token private. Next, get your chat ID by messaging @userinfobot, which replies with your numeric ID.

In Uptime Kuma, go to Settings, then Notifications, then Setup Notification, and pick Telegram. Paste the bot token and your chat ID, then press Test. If the test arrives, save the notification and attach it to each monitor. For a longer walkthrough of the same screens, see our Uptime Kuma Telegram alerts setup guide. One warning: attach Telegram to all of your monitors at once instead of testing one and forgetting the rest. A monitor with no notification attached fails silently, and you only find out when a real outage goes unreported.

Step 4: Tune Intervals, Retries, and Alert Thresholds

The default settings work for most small sites, but a few adjustments cut noise without hiding real problems. Use the table below as a starting point and adjust from what you observe over the first two weeks.

What you monitor Interval Retries Why
Main homepage 60 seconds 2 Fast alerts, and two retries filter out one lost packet.
Login or admin page 120 seconds 2 Less traffic, still worth watching for database failures.
Low-priority inner page 5 minutes 1 Checks the app without hammering the server every minute.
Heartbeat job Match the job schedule Set a grace period Slow jobs need slack or they trigger false alerts.

Set retries to at least 2 for anything that pages you. A single failed check is often a network hiccup, not a real outage; two or three in a row mean the problem is real. Pairing these monitors with alerts on 5xx errors gives you a second signal for the same outage, as our guide on monitoring Nginx error logs for 5xx spikes shows.

Step 5: Add a Public Status Page

Once your monitors run, turn them into a status page your visitors can check. In Uptime Kuma, open Status Pages, create a new page, and add the monitors you want to show. Publish it on a subdomain like status.example.com. It answers “is the site down for everyone or just me” without a support message, and it gives you a public uptime record, which matters if you host client sites. Good website monitoring on vps setups always include a status page, because the people affected by an outage deserve the same information you have.

Keep the page honest. Show the monitors that matter, including the ones that go down sometimes. A status page that claims everything is green while visitors hit a dead page stops being trusted.

Mistakes That Trigger False Alerts

Most false alerts come from the setup, not from Uptime Kuma itself. The first mistake is running Uptime Kuma on the same server it watches: if that VPS goes down, the monitor dies with it and no alert ever fires, so run Kuma on a separate small VPS or a home server. The second mistake is a keyword that is too generic, which we covered in Step 1. The third is an interval that is too aggressive: checking a small site every 20 seconds can trip rate limits, and the monitoring traffic itself starts to look like an attack. The fourth is forgetting the grace period on heartbeat monitors, so a slow backup pages you at 4 a.m. for doing its job slowly. The fifth is leaving the retry count at zero, so one lost packet wakes you up.

If you still get alerts that do not match reality after fixing these five, read our guide on troubleshooting why Uptime Kuma reports false downtime, which walks through the remaining causes, from DNS hiccups to clock drift between servers.

Start with one HTTP monitor on your homepage and one heartbeat monitor on your most important scheduled job. Add Telegram, let it run for a week, and adjust the intervals from what you see. A small set of health checks that you actually trust beats a long list of monitors that cry wolf every night.

Ditulis oleh

Firdaus Safari Putra

Founder, PT FirKaizen Digital Solutions

Firdaus Safari Putra adalah founder PT FirKaizen Digital Solutions. Ia membangun dan mengoperasikan infrastruktur server di balik panduan ini, dan menulis berdasarkan apa yang benar-benar ia jalankan, uji, dan ukur — bukan teori.