Uptime monitoring for WordPress sites
A WordPress site can pass a simple check and still show visitors an error. This guide shows what breaks on WordPress, what to monitor and who should get the alert.
- Lalida, UptimeVanguard
What breaks on a WordPress site
Many WordPress problems start with a change, not at the server:
- Plugin and theme updates. An update can cause a PHP fatal error. Visitors then see a blank page or the message "There has been a critical error on this website."
- Database problems. When WordPress cannot reach its database, every page shows "Error establishing a database connection".
- Updates in progress. During an update, WordPress shows "Briefly unavailable for scheduled maintenance." with status 503. A check at that moment fails.
- Expired SSL certificates. Browsers block the site with a full-page warning.
- DNS and hosting. A lapsed domain, a changed DNS record or a host outage takes the whole site away.
- WP-Cron that does not run. Scheduled posts, backups and update checks wait, and nothing shows an error.
- A slow admin. A heavy plugin can slow the login page and the dashboard long before the site goes down.
Why the status code is not enough
WordPress usually sends status 500 with a critical error, so a check that expects a 2xx status fails. But when the error happens after part of the page was sent, the status is already 200. The visitor sees half a page or a white screen, and a status check sees success.
So check the content too. Pick a text that appears only on a page that rendered completely, for example a line in your footer. The check fails when that text is missing. You can also fail the check when the page contains "critical error" or "Error establishing a database connection".
What to monitor
- The homepage, with a text check as above.
- One deep page, such as a recent post or a product page. A page cache often serves the homepage when the database is down. A deep page that is not in the cache shows the problem.
/wp-login.php. It loads without a login and runs WordPress and its plugins. If a security plugin moved the login page, check the new address.- The SSL certificate, with a warning some weeks before it expires, so a failed automatic renewal does not surprise you.
- DNS, so you know when the records of your domain change.
- Response time. Compare it before and after each update, so a slow plugin shows early.
Run WP-Cron on a real schedule
WP-Cron runs only when someone visits the site. On a quiet site, scheduled tasks wait for the next visitor. The WordPress developer documentation describes the fix: let the system scheduler call wp-cron.php, and add define( 'DISABLE_WP_CRON', true ); to wp-config.php.
Then add a heartbeat: after the call succeeds, ping a URL. When the ping does not arrive in time, you get an alert. In a crontab, every 5 minutes:
*/5 * * * * curl -fsS -m 60 https://example.com/wp-cron.php > /dev/null && curl -fsS -m 10 --retry 3 https://app.uptimevanguard.com/ping/YOUR-TOKEN > /dev/null
&& sends the ping only when the first call succeeds. Our cron job and heartbeat guide explains the flags and the grace period.
Send the alert to the right person
Decide who fixes what. A down site goes to the person who manages the site, in a channel they read at once. Certificate and DNS warnings can go to email, because you have days to act.
Plan maintenance windows for updates
Updates cause short, expected errors. Plan a maintenance window for the update time, so the checks do not alert while you work. Keep the window short. An error that is still there when it ends is a real problem.
How UptimeVanguard does it
Add your site as a monitor. The HTTP check takes the status codes you expect, a text the response must contain and a text it must not contain. The SSL certificate and DNS checks run on the same monitor. Each other address, such as the deep page or /wp-login.php, is a monitor of its own.
For WP-Cron, add a heartbeat to the monitor. It gets its own ping URL in the form https://app.uptimevanguard.com/ping/<token>. Choose an interval, such as 5 minutes, and a grace period.
We record the response time of every HTTP check. You can also get an alert by email or Telegram when an HTTP check gets slow, and when it is fast again. Routing rules send each monitor, check type and event to the channels you choose. A maintenance window covers one monitor or all of them. During the window, failures open no incident and send no alert, and the time does not count in reports.
If your site runs on WordPress.com, or your host or CDN is in our list of third-party services, such as Cloudflare, DigitalOcean or Hetzner, follow it. You then get an alert when the provider reports an incident.
The Free plan covers 3 sites with every check type and every alert channel, checked every 5 minutes. That is enough for a homepage, a deep page and the login page. On the paid plan, 5 sites cost €10.00 a month, excl. VAT, with checks every minute. To set up your first alert, read how to get an alert when your website goes down, or start for free.