Your VPS goes down at 3 a.m. Nobody tells you. You find out at 9 a.m. from a customer, or from a search console report days later. That gap is the whole reason to set up uptime monitoring for a VPS. A monitor checks your server every minute or so and alerts you the moment it stops answering. Setup takes under half an hour with Uptime Kuma, a free, self-hosted monitor that runs in Docker.
What uptime monitoring for a VPS actually checks
An uptime monitor does one simple job: it asks your server, on a schedule, “are you still there?” and records the answer. The check usually runs every 60 seconds. If it answers, the monitor logs “up”. If it does not answer within a few seconds, or answers with an error, the monitor logs “down” and fires an alert.
That sounds basic, and it is. The value is in what it catches: a crashed web server, an expired SSL certificate, a full disk that stopped MySQL, a firewall rule that locked out port 443, a provider outage in your region. From the outside, each of these looks identical: your site does not load. The monitor cannot tell you which one happened, but it tells you within a minute that something happened, which is usually the difference between a five-minute fix and a lost morning.
Pick a free uptime monitoring tool
There are two kinds of free uptime monitoring tool. Hosted services run the checks from their own servers. Self-hosted tools run on a server you control. For a single VPS, self-hosted Uptime Kuma is the most common pick, but the hosted options work as a second opinion.
| Tool | Free tier | Check interval | Best for |
|---|---|---|---|
| Uptime Kuma (self-hosted) | Unlimited monitors | 20 seconds and up | Full control, no monitor cap |
| UptimeRobot | 50 monitors | 5 minutes | Quick start, no server needed |
| HetrixTools | 15 monitors | 1 minute | Simple hosted checks |
| Better Stack (free tier) | 10 monitors | 3 minutes | Polished status pages |
The five-minute interval on UptimeRobot’s free plan is the main trade-off: a short outage can start and end between checks and never get recorded. Uptime Kuma checks as often as every 20 seconds and has no cap on monitors, which is why this guide uses it. The catch is that it needs a place to run, ideally not the same VPS it watches. If the VPS dies, the monitor dies with it and you get no alert. A cheap second VPS, a Raspberry Pi at home, or a free hosted monitor as a backup all work. If you only have one server, install it there for now and add an external check later.
Uptime Kuma setup with Docker
Uptime Kuma ships as a single Docker container, so the install is short. You need Docker and Docker Compose on the machine that will run it. Confirm Docker works, then create a directory and a compose file inside it:
mkdir -p ~/uptime-kuma && cd ~/uptime-kuma
nano docker-compose.yml
Paste this into the file:
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
volumes:
- ./data:/app/data
ports:
- "3001:3001"
restart: unless-stopped
Then start it:
docker compose up -d
Open http://your-server-ip:3001 in a browser and create an admin account on first visit. Pick a strong password and store it in a password manager.
Two notes before moving on. First, port 3001 is open to the internet by default. Restrict it to your own IP, or put the dashboard behind a reverse proxy with a password and HTTPS. Second, restart: unless-stopped means the container comes back after a reboot. Without it, a server restart silently kills your monitoring.
Add your first monitor and start to monitor VPS uptime
Click “Add New Monitor” to start uptime monitoring for a VPS.
Monitor type. For a website, choose HTTP(s). For a game server or mail server, choose TCP port or ping instead. HTTP checks confirm the web server answers. A ping check only confirms the machine is reachable: nginx can be down while ping still answers.
URL and interval. Enter the full address, including https://, and monitor the HTTPS address directly if your site redirects there. Set the interval to 60 seconds. Twenty seconds gives faster alerts but triples the log entries. Leave accepted status codes at the default 200-299; if your homepage redirects, add 301 and 302, or monitor the final destination URL instead.
Keyword. This is the check most people skip, and it catches the worst failures. A web server can return a 200 status while serving an error page or a blank database error screen. Adding a keyword, a short string that only appears on a working page, such as a word from your homepage footer, makes the monitor fail when the page loads but the content is wrong.
Save the monitor. If it shows green, add the other services that matter: a second site on the same VPS, the admin panel, any API endpoint your app depends on. Ten monitors you actually read beat fifty you ignore.
If you run WordPress, the same approach works, but the keyword check matters even more, since a crashed PHP process often still returns a 200 with an error message. Our guide to monitoring WordPress uptime from your VPS with a free tool covers the WordPress-specific setup.
Set up VPS downtime alerts that reach you
A monitor without alerts is a dashboard you never open. Uptime Kuma supports dozens of notification channels: Telegram, Discord, email, Slack, Pushover, and webhooks. Telegram is the most reliable free option, because the message arrives on your phone within seconds and does not depend on your own mail server working.
To connect Telegram, message BotFather on Telegram and create a bot, then copy the token it gives you. Start a chat with your new bot and send it any message. In Uptime Kuma, go to Settings, then Notification, and add a Telegram notification with your bot token and chat ID, which you can find by opening https://api.telegram.org/bot<your-token>/getUpdates in a browser. Send a test notification from Uptime Kuma before you trust it.
Email alerts are the fallback, but if your VPS runs your mail server and the VPS goes down, the email cannot be sent. Use an external mail service for alerts.
Fire the alert after one failed check, not three. Fix the cause of false alarms instead of delaying real ones.
Fix false alarms before they burn you out
New setups produce false alarms. The three common causes:
Your server restarts and the monitor fires. Scheduled reboots and unattended updates create brief gaps. Add a maintenance window for your regular reboot time.
The check times out on a slow first response. A small VPS under load can take more than a few seconds to answer, especially if PHP-FPM has to spin up workers. Raise the timeout in the monitor settings to 10 or 15 seconds. A timeout alert for a site that loads fine in a browser trains you to ignore alerts.
Your CDN answers instead of your server. If your site sits behind Cloudflare or another CDN, an HTTP check hits the CDN edge, not your VPS. The CDN can serve a cached page while your origin server is down, and the monitor reports everything fine. Monitor the origin directly as a second check, using the server IP or a direct subdomain that bypasses the CDN. Our walkthrough on setting up Cloudflare free CDN in front of your VPS explains how the origin and edge relate.
One more quiet killer: an expired SSL certificate. The monitor will fail the HTTPS check, which is correct behavior, but the fix is prevention. A certificate that renews itself removes the whole class of failure. See our guide to setting up a free SSL certificate that renews itself on nginx.
Keep the monitor itself alive
A monitor is a single point of failure. Check three things.
First, back up Uptime Kuma’s data directory. All monitors and history live in the ./data folder next to your compose file. Copy it to another machine on a schedule.
Second, add one external check from a hosted service. Even a free UptimeRobot account with a five-minute interval is enough to catch the case where your whole VPS, monitor included, goes dark. Two monitors disagreeing tells you where the problem is. If the external one says down and Uptime Kuma says nothing, the monitor host is the problem.
Third, revisit the monitor list every few months. Old monitors for sites you retired, and alerts routed to a chat you no longer read, are how real outages get missed.
Free tools have limits, and paid services add faster checks, SMS alerts, and public status pages. If you outgrow the free tier, compare the options in our roundup of the best paid uptime monitoring services for VPS owners in 2026 before spending anything. For most single-VPS setups, the free tool above covers the job. Install it today, send yourself a test alert, and the next outage will reach you in a minute instead of a morning.