Welcome to HowToShipIt — practical how-to guides for developers: code, AI tools, and servers, explained step by step.

Uptime Monitoring: Set It Up So You Hear About Downtime First (2026)

Your website went down at 2 a.m. You found out at 9 a.m. — from a customer. That gap, between the outage starting and you hearing about it, is the whole problem uptime monitoring exists to close. This guide sets up a complete system in under an hour: free external checks that watch your site from the outside, a self-hosted dashboard for when you outgrow the free tier, and heartbeat checks that catch the cron job that silently stopped running three weeks ago.

Everything here is free or costs about $5 a month for a second tiny VPS. All free-tier limits were verified on 24 November 2026 — check the pricing pages linked at the end before you commit, because free tiers move.

What uptime monitoring actually catches (and what it misses)

Uptime monitoring answers one question: can a visitor reach your site right now, and does it respond correctly? An external checker requests your URL every minute or so from a data centre somewhere else in the world. If the request fails, or takes too long, or returns the wrong content, you get an alert.

What it catches:

  • Your server is down, crashed, or out of disk space.
  • Nginx or PHP-FPM stopped, so the site returns 502 errors.
  • Your SSL certificate expired and browsers now refuse the site.
  • Your domain expired, or DNS broke after a registrar change.
  • Your app is technically “up” but serving an error page with a 200 status — if you check for a keyword, not just a status code.

What it does not catch: a slow database query making every page take 12 seconds, a broken checkout flow, or a backup job that stopped running. Those need server metrics and heartbeat checks, which this guide also covers.

One number worth internalising: 99.9% uptime sounds excellent, but in a 30-day month it still allows about 43 minutes of downtime — 99.99% allows about 4 minutes.

The three layers every uptime monitoring setup needs

A useful setup answers three different questions, and no single tool answers all of them well:

Layer Question it answers Tool in this guide
External checks Can visitors reach the site? UptimeRobot (free) or Uptime Kuma (self-hosted)
Server metrics What is the server doing — CPU, RAM, disk? Netdata, or a small disk-space script
Heartbeats Did the backup or cron job actually run? Healthchecks.io (free) or Uptime Kuma push monitors

The most important rule in this whole post: a server cannot report its own death. If the VPS freezes or loses its network, any monitor running on it goes silent too. External checks must run somewhere else — a hosted service like UptimeRobot, or a second small VPS in another location.

Option 1: UptimeRobot free — uptime monitoring in 10 minutes

If you want monitoring today with zero servers to manage, start here. UptimeRobot’s free plan, verified on its pricing page on 24 November 2026, gives you 50 monitors at 5-minute intervals, no credit card required, and it is explicitly good for personal and commercial projects. That covers a personal blog, a client site, and a side project with room to spare.

Set up your first monitors

  1. Create a free account at UptimeRobot and click Add New Monitor.
  2. Choose HTTP(s), enter your site’s URL, and set the monitoring interval to 5 minutes (the free plan’s fastest).
  3. Add a keyword monitor for your most important page: instead of only checking that the page returns a 200 status, check that the page contains a word that only appears when it renders correctly — for example, a phrase from your footer. A 200 status on a database-error page is still an outage.
  4. Add a ping monitor for the server’s IP address. If the ping monitor is up but the HTTP monitor is down, the server is alive and the web stack is the problem. That distinction saves you 10 minutes of guessing.
  5. Add a port monitor for anything else that must stay reachable — port 22 for SSH, 3306 for MySQL if it is exposed (it should not be), or your app’s port.

The free plan also includes SSL and domain-expiry monitors, which alert you 30, 14, and 7 days before expiry. Set both up: an expired certificate or domain is a 100% preventable outage, and it happens to experienced developers.

Where the free plan stops

Five-minute checks mean you can be down for up to five minutes before the first failed check, plus the re-check UptimeRobot runs from a second data centre before alerting you. For a blog or brochure site, that is fine. For a store taking orders, it is not — the paid Solo plan ($12/month billed annually) drops the interval to 60 seconds. The free plan keeps 3 months of history and gives you one basic status page.

Option 2: self-host Uptime Kuma — unlimited uptime monitoring on a $5 VPS

Uptime Kuma is the open-source, self-hosted monitoring tool (MIT licence, over 94,000 GitHub stars) that most developers graduate to. It checks every 20 seconds, supports HTTP, keyword, ping, TCP port, DNS, and Docker-container monitors, has a built-in status page, and sends alerts through 90+ notification services including Telegram, Discord, Slack, and email.

Run it on a different VPS from the one you are watching — a $5 instance in another region is enough. A single vCPU with 1 GB of RAM comfortably handles dozens of monitors.

Install it with Docker

The official install, straight from the project’s README:

mkdir uptime-kuma
cd uptime-kuma
curl -o compose.yaml https://raw.githubusercontent.com/louislam/uptime-kuma/master/compose.yaml
docker compose up -d

Or as a single Docker command:

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

Two hardening tweaks before you open the dashboard. First, bind the port to loopback only (-p 127.0.0.1:3001:3001) and reach it through an SSH tunnel or behind a reverse proxy with HTTPS — do not leave the dashboard open to the internet. Second, create the admin account immediately on first login; an unclaimed Uptime Kuma install is an open door. If you already run Caddy, one block in your Caddyfile puts it behind automatic HTTPS — the same pattern as the Caddy reverse proxy setup on this blog.

Tune the monitors so they fail for the right reasons

Click Add New Monitor and fill in more than the URL. The defaults are generous enough to hide real problems:

  • Heartbeat interval: 60 seconds for anything customer-facing, 300 seconds for internal services you only check after an alert.
  • Retries: 1. Zero retries means a single dropped packet pages you at 3 a.m. Three or more delays a genuine outage by minutes.
  • Request timeout: drop it from the 48-second default to 10 seconds. If your homepage takes 48 seconds to answer, it is down for practical purposes.
  • Keyword: same rule as UptimeRobot — check for text that only appears on a correctly rendered page.

Connect alerts and publish a status page

Notifications are configured once under Settings > Notifications, then attached to each monitor. Telegram is the most reliable free channel for a solo developer: it arrives instantly and does not get filtered like email. Then go to Status Pages > New Status Page, add your monitors, and link it from your site footer. A public status page turns “is it down for everyone?” support messages into a link you can send once.

Monitor the right things: health endpoints, not just homepages

The homepage is the worst page to monitor. It is usually cached, it rarely touches the database, and it can return 200 while your app is broken underneath. Monitor a page that proves the whole stack works.

Add a lightweight /health endpoint to your app. In Laravel:

Route::get('/health', function () {
    try {
        DB::select('SELECT 1');
        return response('ok', 200);
    } catch (Exception $e) {
        return response('down', 503);
    }
});

Or plain PHP, if that is what your site runs on:

<?php
// public/health.php — one DB query, nothing else
try {
    $pdo = new PDO('mysql:host=127.0.0.1;dbname=app', 'health', 'your-password');
    $pdo->query('SELECT 1');
    http_response_code(200);
    echo 'ok';
} catch (Throwable $e) {
    http_response_code(503);
    echo 'down';
}

Keep it light — one query, no sessions, no heavy rendering. Point your HTTP monitor at /health with a keyword check for ok. Now a dead database, a broken connection pool, or a crashed PHP-FPM all show up as downtime within a minute, instead of hiding behind a cached homepage.

For WordPress sites, the same idea applies: monitor a page that exercises the database rather than a cached static page, and add the SSL and domain-expiry monitors from the previous sections.

Heartbeats: catch the cron job that never ran

External checks only notice failures that happen while they are watching. A backup that stops running fails silently — nothing changes, nothing errors, and you discover it the day you need the backup. Heartbeat monitoring flips the model: your job pings a URL when it finishes, and the monitor alerts you when the ping is late.

Healthchecks.io does this well. Its free Hobbyist plan covers 20 jobs with 100 log entries per job, verified on its pricing page on 24 November 2026. Create a check, copy its ping URL, and add one line to the end of your backup script:

#!/bin/bash
# /usr/local/bin/backup.sh
restic backup /var/www --tag daily
curl -fsS -m 10 --retry 3 https://hc-ping.com/your-check-uuid-here

The curl only runs if the backup succeeded — put it after the backup command, not before it. If the script crashes, the server reboots mid-backup, or cron itself stops, no ping arrives and Healthchecks alerts you after the grace period you set. Apply the same pattern to database dumps, certificate renewals, and any scheduled job whose silence would hurt. Uptime Kuma has the same feature built in as a Push monitor, if you would rather keep everything in one dashboard.

This pairs directly with the automated VPS backups guide: a backup you never test and never verify is a backup that does not exist. A heartbeat is the cheapest possible verification.

Alert tuning: how to stop ignoring your own alerts

Alerting on everything is as bad as alerting on nothing. After a week of noise, you stop reading the alerts — and then you miss the real one. Start with a short list and add to it only when a real incident proves a gap:

What Warning Critical Why it matters
Disk space used 80% 90% A full disk breaks databases, logs, and updates
Site down (HTTP check) — 2 failed checks Require two failures to filter single-packet blips
SSL certificate expiry 30 days 7 days Expiry is a total outage and 100% preventable
Backup heartbeat late — 1 missed ping A backup that never ran is the same as no backup
Response time > 2 seconds > 5 seconds Slow degradation is an outage users feel first

Three rules make the difference between alerts you act on and alerts you mute:

  1. Require two failed checks before alerting. One failed check from one location is usually a network blip. UptimeRobot re-checks from a second data centre automatically; in Uptime Kuma, set retries to 1.
  2. Use maintenance windows for deploys. Every tool in this guide supports them. An alert you expected is an alert you will start ignoring.
  3. Route alerts to exactly one channel you actually read. Telegram or a dedicated Slack channel beats email, which beats SMS you pay per message for. Two channels means one of them becomes the channel you ignore.

When an alert fires: the 5-minute triage

An alert is only useful if you know what to do with it. Keep this order:

  1. Is it just you? If the ping monitor is up but HTTP is down, the server is alive — the web stack is the problem.
  2. Check the server: systemctl status nginx php8.6-fpm, then disk space (df -h — a full disk is the most common silent killer) and memory (free -h).
  3. Check the app: read the last 20 lines of the error log before restarting anything. Restarting first destroys the evidence of what broke.
  4. Check the outside world: did the domain expire, did DNS change, did the certificate renew fail? These are the outages that survive a server reboot.
  5. Write one line down — what broke, what fixed it, what monitor would have caught it sooner. That line is next month’s new monitor.

7 mistakes that make uptime monitoring useless

  1. Monitoring the server from itself. A monitor on the same VPS goes down with the VPS. External checks or nothing.
  2. Checking only the homepage. Cached pages lie. Monitor a /health endpoint that touches the database.
  3. Checking for a 200 and nothing else. Error pages return 200 all the time. Add a keyword check.
  4. Alerting on everything. Disk at 60%, CPU spikes, every deploy — noise trains you to ignore the real alerts.
  5. Never testing the alert path. Stop Nginx for 30 seconds on purpose. If no alert arrives, your monitoring is decoration.
  6. Ignoring SSL and domain expiry. Both cause total outages, both are free to monitor, and both bite experienced developers.
  7. No status page. Without one, every outage becomes ten “is it down?” messages. With one, it becomes a link.

The 1-hour setup, in order

  1. Create a free UptimeRobot account and add HTTP, keyword, ping, port, SSL, and domain-expiry monitors for your main site. (10 minutes)
  2. Add a /health endpoint to your app and point the HTTP monitor at it. (15 minutes)
  3. Create a free Healthchecks.io account and add a heartbeat to your backup script. (10 minutes)
  4. When you have more than a couple of sites, deploy Uptime Kuma on a second small VPS, wire up Telegram alerts, and publish a status page. (25 minutes)
  5. Stop Nginx for 30 seconds and confirm the alert actually arrives. (5 minutes)

Do step 5 — a setup you have never seen fire is one you are guessing about.

Further Reading & References

Free-tier limits and prices in this post were verified on 24 November 2026. Confirm them on each vendor’s pricing page before you commit — free tiers change.

Leave a Comment