Your WordPress site can go down at 3 a.m. and you will only find out when a visitor complains, or when you check your analytics days later and see a flat line. The fix is simple: monitor WordPress uptime from your VPS with a free tool that checks your site every minute and tells you the moment it stops answering. This guide walks you through exactly that with Uptime Kuma, a free self-hosted monitor you run in Docker on your own server, plus how to set up alerts and cut out false alarms.
Most site owners use a hosted service instead. That works, but free plans usually check every few minutes and keep your history on someone else’s server. Running the monitor yourself costs nothing beyond the VPS you already pay for, and you control the interval, the alerts, and the data.
Why monitor from your own VPS
When your site lives on a VPS, you already own the machine that can watch it. A monitor on that server can check the homepage and login page as often as every 20 seconds and ping you on Telegram the moment a check fails. No new subscription, and no need to hand your URLs to a third party.
There is one honest trade-off. If the whole VPS goes down, a monitor on that same VPS goes down with it and cannot alert you. For most small sites that is an acceptable risk, because most WordPress outages are not dead servers but a crashed PHP-FPM pool, a full disk, or a stopped MySQL service, and the monitor keeps running through all of those. If you also want coverage for a full server outage, run the monitor on a second small VPS or pair it with one external check.
What you need before you start
- A VPS running Ubuntu 22.04 or 24.04 with Docker and Docker Compose installed. If Docker is not installed yet, follow our guide to install Uptime Kuma with Docker first.
- A WordPress site already running behind Nginx on that server or another server you manage.
- A Telegram account if you want alerts on your phone. Email works too, but Telegram is faster to set up and easier to notice.
- About 15 minutes and a spare port for the dashboard, usually 3001.
How to monitor WordPress uptime from your VPS with Uptime Kuma
Uptime Kuma is a lightweight status page and monitoring tool with a clean web dashboard. It stores its data in a small SQLite file, needs very little RAM, and supports HTTP checks, keyword checks, ping, and port checks out of the box. For an Uptime Kuma WordPress setup, the HTTP keyword check is the right choice, because it proves the page actually rendered instead of only proving that Nginx answered.
Step 1: Run Uptime Kuma in Docker
Create a directory for the monitor and a compose file inside it:
mkdir -p /opt/uptime-kuma && cd /opt/uptime-kuma
Save this as docker-compose.yml:
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
volumes:
- ./data:/app/data
ports:
- "127.0.0.1:3001:3001"
restart: unless-stopped
Binding to 127.0.0.1 keeps the dashboard off the public internet; reach it through an SSH tunnel or behind Nginx with basic authentication. Then start it:
docker compose up -d
Open the dashboard, create your admin account, and add your first monitor.
Step 2: Add a keyword monitor for your homepage
In the dashboard, click Add New Monitor and fill in these fields:
- Monitor Type: HTTP(s) – Keyword
- Friendly Name: your site name, for example “My WordPress Site”
- URL: your homepage, for example
https://example.com/ - Keyword: a word that only appears when WordPress renders the page, such as a phrase from your footer or your site title
- Heartbeat Interval: 60 seconds
- Retries: 2
The keyword is the part most guides skip, and it matters. A plain status check passes as long as Nginx returns a 200, even if PHP is dead and Nginx serves its default welcome page or an error page that also returns 200. A keyword check fails unless the page contains text only a working WordPress install produces, so it catches the white screen of death and broken database connections that a simple ping never sees.
Step 3: Add monitors for the parts that break first
One monitor on the homepage is a start, but WordPress usually breaks in one place while the rest looks fine. Add a second monitor for https://example.com/wp-login.php with a keyword such as “Log In”, which proves PHP and the login flow still work. If you run WooCommerce, add a third for the shop page. Keep the same 60-second interval and 2 retries so one slow response does not wake you up.
For a fuller walkthrough of the dashboard, see our guide on how to monitor your website uptime for free with Uptime Kuma, which covers the same setup for any site.
Set up WordPress downtime alerts
A monitor without alerts is a dashboard you never open. Uptime Kuma supports dozens of notification channels, and Telegram is the most practical one for a single site owner. Create a bot with BotFather, start a chat with it, and get your chat ID. Then go to Settings, then Notifications, add Telegram with your bot token and chat ID, and test it once to confirm the message arrives on your phone.
Our step-by-step guide to Telegram alerts in Uptime Kuma covers the BotFather part in detail if you get stuck on the token or the chat ID. Once Telegram works, attach it to each monitor and set alerts to fire after the retries are used up, not on the first failed check. That one setting keeps a single slow page load from becoming a 3 a.m. notification.
Add email as a backup channel for longer outages, but keep Telegram as the first alert. Email is easy to miss when your site is down and you are away from your inbox.
Cut out false alarms
A monitor that cries wolf gets ignored. Three settings cause most of the noise, and all three are easy to fix.
| Problem | What causes it | Fix |
|---|---|---|
| Single failed check alerts you | Retries set to 0 | Set retries to 2 or 3 |
| Monitor says down, site is fine | Keyword changed after a theme update | Pick a stable keyword from your footer or site title |
| Alerts during deploys | Checks run while you restart PHP-FPM | Pause the monitor before maintenance, resume after |
| Timeout on a slow shared page | Interval shorter than the page load time | Raise the interval to 60 seconds for heavy pages |
If alerts still do not match reality, work through our guide on false downtime reports in Uptime Kuma, which covers the common causes, including DNS caching and keyword mismatches after a redesign.
Update the keyword after any theme change or redesign. A new footer means a new keyword, and forgetting that step is the most common reason a healthy site starts reporting as down the day after a redesign.
What to do when an alert fires
An alert tells you something broke, not what broke. Check in this order, fastest first:
- Open the site in a browser. If it loads, the outage may already be over; the monitor history shows how long it lasted.
- Run
curl -s -o /dev/null -w "%{http_code}" https://example.com/from the server. A 200 means Nginx and PHP answered. A 502 points at PHP-FPM, and a 000 means nothing answered at all. - Check disk space with
df -h. A full disk stops MySQL first and WordPress right after it. - Check the services with
systemctl status nginx php8.3-fpm mariadb(adjust the PHP version to yours) and restart whichever service is down. - Look at the last lines of the Nginx error log. To catch problems uptime checks miss, learn to watch your Nginx error logs for 5xx errors.
Most WordPress outages on a VPS come down to three things: PHP-FPM stopped, MySQL stopped, or the disk filled up. The monitor tells you within a minute, the checks above tell you which one it is, and a restart or a cleanup usually brings the site back before visitors notice.
Keep the monitor itself healthy
Free uptime monitoring self-hosted on your own VPS only works if the monitor keeps running. Back up the ./data directory with your other backups, because it holds all your monitor history and settings. Update the container occasionally with docker compose pull && docker compose up -d, and check the dashboard weekly to confirm the monitors are green and alerts still work. Send a test notification after every update so a broken alert channel never sits unnoticed for months.
That is the whole setup. You now monitor WordPress uptime from your VPS with a free tool, get an alert within a couple of minutes when the site breaks, and can tell a real outage from a false alarm before you start fixing things. Set it up once, test the alert once, and let it watch the site.