Check 09.13 · Security and infrastructure

Monitor uptime and alerts

Set up external probes, content and expiry checks and well-tuned alerts with UptimeRobot, Uptime Kuma, Cloudflare, AWS or Azure.

Priority
Critical
Difficulty
Easy
Estimated time
1 to 2 h
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Monitoring uptime means having the site tested continuously from the outside and being warned, by the right person and on the right channel, as soon as it stops responding correctly. Useful monitoring does not stop at the home page's HTTP code: it also checks that a dynamic page shows the expected content, that robots.txt responds, that the certificate and the domain do not expire and that scheduled jobs run. Once this is in place, you learn about an outage before your customers do, and before search engines see it several days in a row.

Why it matters

An unavailable site does not just lose visits. Googlebot reacts to server errors: it slows down its crawling when it receives 5xx codes, and Google states that a robots.txt returning 5xx can suspend crawling of the whole site. If pages stay in error for several days, they can drop out of the index. The bots of generative engines that fetch a page at a user's request also receive the error, and cannot cite what they could not read.

The costliest outages are silent ones: a blank page served with a 200 code, a database that no longer responds on uncached pages, a certificate that expires on a Saturday, a domain that was not renewed, a backup that has been failing for three weeks. Only monitoring that tests content and expiry dates reveals them.

This guide covers the design of probes and alerts. Diagnosing DNS and server errors, with a free monitoring script and the logs, is covered in monitor DNS and server errors (opens in a new tab).

What it improves

  • Outage duration Response within minutes instead of hours.
  • Crawling and indexing Fewer 5xx errors received by bots, so less crawl slowdown and fewer pages removed from the index.
  • Revenue Fewer lost orders and inquiries.
  • Silent outages Defacement, blank pages, expired certificates or domains detected before they become visible.
  • Relationship with the host A dated history of incidents supports a request for a fix or compensation.
  • Rankings No direct effect; the indirect effect is avoiding the consequences of prolonged downtime.

How to check

Answer these questions:

  1. Does an external probe test the site at least every five minutes?
  2. Does it test a dynamic page and the presence of an expected text, not just the home page's status code?
  3. Are the expiry dates of the TLS certificate and the domain name monitored?
  4. Does the alert reach at least two people, through a channel that is read outside office hours?
  5. Have you received a test alert this quarter?

For the last point, cause a controlled outage: create a probe on a test URL, https://example.com/sonde-test, then make it return 503 for a few minutes. The alert should arrive within the expected time, followed by the recovery notification.

How to implement

Before you start

Choose what you monitor. A baseline for a content site or a store:

Probe Target Frequency Alert condition
HTTP https://example.com/ 1 to 5 min Code other than 200, or timeout
HTTP with keyword An uncached dynamic page (product page, search) 1 to 5 min Expected text missing, for example the brand name in the footer
HTTP https://example.com/robots.txt 5 to 15 min 5xx code
Response time Home page 5 min Above 3 s several times in a row
TLS certificate example.com:443 Daily Expires in less than 14 days
Domain Expiry date at the registrar Daily Expires in less than 30 days
Heartbeat Backups, sitemap generation, cron jobs Depends on the job No signal within the expected time

Alerting rules:

  • Confirm before alerting: two consecutive failures, or a failure seen from at least two regions. This avoids false alerts caused by a one-off network incident.
  • Two channels: email for the record, and a channel that wakes people up (mobile notification, SMS, phone call) for critical probes. A team chat (Slack, Teams) is fine during the day.
  • Escalation: if nobody acknowledges the alert within 15 minutes, notify a second person.
  • Maintenance windows: pause probes during planned work, and serve a 503 to visitors, see use 503 during temporary maintenance (opens in a new tab).
  • Status page: a public page, hosted somewhere other than the site, keeps customers informed during an outage.

Warning: a probe hosted on the monitored server goes down with it. Always run monitoring with another provider or on another machine.

With UptimeRobot

At the time of writing, UptimeRobot's free plan offers HTTP, keyword, port and ping monitors every five minutes, along with certificate and domain expiry monitoring; shorter intervals and heartbeat monitors belong to the paid plans. Check the pricing page for the current limits.

  1. New monitor, HTTP(s) type, home page URL, five-minute interval.
  2. A new Keyword monitor on a dynamic page, with the text that must be present.
  3. Add the alert contacts (email, mobile app, webhook to your team chat) and attach them to each monitor.
  4. Create a status page if you want to keep customers informed.

With Uptime Kuma

Uptime Kuma is free and self-hosted. Install it on a small machine separate from the site, with Docker:

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

Open http://ADRESSE:3001, create the administrator account, then add HTTP(s), HTTP(s) - Keyword and DNS monitors. For scheduled jobs, create a Push monitor: Uptime Kuma provides a URL that the job calls each time it succeeds, and alerts when no call arrives. Configure notifications in Settings > Notifications (email, Telegram, Slack, Teams, webhook…). Put the interface behind HTTPS and strong authentication.

Heartbeat for scheduled jobs

A failing cron job warns nobody. Have it report its success to a heartbeat service (Healthchecks.io, an Uptime Kuma Push monitor, the Heartbeat monitor of UptimeRobot's paid plans):

30 3 * * * /usr/local/bin/sauvegarde-example.sh && curl -fsS -m 10 --retry 3 https://hc-ping.com/IDENTIFIANT > /dev/null

The service alerts you if it receives nothing within the expected period. See automate backups and test restores (opens in a new tab).

Cloudflare

Versions Cloudflare dashboard, Health Checks from the Pro plan, November 2026.

Behind Cloudflare, an origin outage shows up as 52x errors served to visitors and bots. External probes detect them like any other 5xx.

  • Health Checks (Pro plan and above): create an HTTPS check on a dynamic page from several regions, then a “Health Checks status” notification.
  • Notifications: on the account's Notifications page, also turn on the Universal SSL alert, included in every plan, which warns of validation, renewal and expiry problems with the edge certificate.
  • Origin certificate: Cloudflare does not monitor the expiry of the certificate installed on your server; a certificate probe querying the origin directly takes care of that.

AWS

Versions AWS console (CloudWatch Synthetics, Route 53, ACM, EventBridge), November 2026.

  • CloudWatch Synthetics: create a canary from the “Heartbeat monitoring” blueprint, which loads a URL at regular intervals, then a CloudWatch alarm on the canary's success metric, connected to an SNS topic (email, SMS, chat).
  • Route 53: health checks and their alarm are detailed in monitor DNS and server errors (opens in a new tab).
  • AWS Certificate Manager: managed certificates renew themselves; for imported certificates, the approaching-expiration event can trigger an alert through EventBridge.

Google Cloud

Versions Google Cloud console, Cloud Monitoring, November 2026.

In Cloud Monitoring, Uptime checks > Create uptime check: HTTPS protocol, hostname, path, and optionally some content expected in the response. At the last step, create the associated alerting policy and choose the notification channels, configured beforehand. The checks run from several regions; by default, the alert fires when at least two regions see the failure for at least one minute.

Azure

Versions Azure portal, workspace-based Application Insights, November 2026.

In Application Insights, Availability > Add Standard test: URL, frequency, test locations (Microsoft recommends at least five), and the option to check TLS certificate validity. An alert rule is created with the test; attach an action group to it (email, SMS, webhook). The standard test replaces the old URL ping tests, which are deprecated and will be retired on September 30, 2028.

Plesk

Versions Plesk Obsidian 18.0.

Plesk monitors the server's services, not the experience of an outside visitor. Set up an external probe (UptimeRobot, Uptime Kuma) on the site, and turn on Plesk notifications for server events, such as disk space and stopped services, in Tools & Settings > Notifications.

cPanel

Versions cPanel & WHM 110 and later (Jupiter theme).

cPanel offers no external probe for accounts: use a third-party service. In the account's contact details (Preferences > Contact Information), check that disk quota warnings go to an address someone reads: a full disk is a common cause of outages on cPanel accounts.

Shared hosting

You cannot install anything on the server: a free external probe and expiry monitoring are enough. Turn on automatic renewal for the domain and the certificate, and keep the probe's history to support your exchanges with support.

WordPress

Versions WordPress 6.4 and later, Jetpack 13 and later.

  • Dynamic page: monitor a page that queries the database without going through the cache, for example an internal search (/?s=test), with an expected keyword. A cached home page can respond while the database is down.
  • Jetpack: its downtime monitoring sends an alert when the site stops responding. It complements an independent probe.
  • Pseudo-cron: replace wp-cron with a real scheduled task and monitor it with a heartbeat.

Laravel

Versions Laravel 10 to 13.

The scheduler can itself report a task's success or failure with pingOnSuccess() and pingOnFailure(). Add a probe on the heartbeat of the scheduler itself: if it stops running, no task runs.

Laravel 11 to 13

The /up health route, declared in bootstrap/app.php, serves as the probes' target: see monitor DNS and server errors (opens in a new tab) to make it fail when the database is unreachable. Tasks are scheduled in routes/console.php:

use Illuminate\Support\Facades\Schedule;

Schedule::command('sitemap:generate')
    ->daily()
    ->pingOnSuccess('https://hc-ping.com/IDENTIFIANT')
    ->pingOnFailure('https://hc-ping.com/IDENTIFIANT/fail');

Laravel 10

Laravel 10 does not provide an /up route: declare a health route in routes/web.php and point the probe at it. Tasks are scheduled in the schedule() method of app/Console/Kernel.php:

protected function schedule(Schedule $schedule): void
{
    $schedule->command('sitemap:generate')
        ->daily()
        ->pingOnSuccess('https://hc-ping.com/IDENTIFIANT')
        ->pingOnFailure('https://hc-ping.com/IDENTIFIANT/fail');
}

Next.js

Versions Next.js 15 and 16 (App Router).

Expose a health route that checks the critical dependencies, in app/api/health/route.ts:

export async function GET() {
  try {
    const reponse = await fetch(`${process.env.API_URL}/status`, { cache: 'no-store' });

    if (!reponse.ok) {
      return Response.json({ statut: 'degrade' }, { status: 503 });
    }

    return Response.json({ statut: 'ok' });
  } catch {
    return Response.json({ statut: 'injoignable' }, { status: 503 });
  }
}

GET route handlers are not cached by default since Next.js 15, and the uncached fetch call makes the response dynamic, including with Cache Components in Next.js 16. Do not add export const dynamic = 'force-dynamic': this option is rejected when Cache Components is enabled. Point the probe at https://example.com/api/health and, separately, at a server-rendered page with an expected keyword.

Vercel

Versions Vercel platform, all plans, November 2026.

The platform handles the availability of its infrastructure, but not that of your dependencies (database, API, headless CMS). Monitor the deployed site with an external probe and the health route above.

Common mistakes

  • Monitoring only the home page: a cached page responds while the application is down.
  • Trusting the 200 code: a blank page, a database error displayed with a 200 or a defacement go unnoticed without a keyword check.
  • A probe on the same server or with the same host: it goes down with the site.
  • Alerts sent to a single person, or only by email at night.
  • Too many alerts: without confirmation or thresholds, the team ends up ignoring notifications, including the real outage.
  • Forgetting expiry dates: certificates and domains expire on a fixed date, often when nobody is looking.
  • Never testing the alert: a deleted contact, an expired webhook, an uninstalled app.

Frequently asked questions

How often should a site's uptime be tested?

Every one to five minutes for the home page and a dynamic page, which lets you detect an outage before it drags on. Robots.txt can be tested every five to fifteen minutes, and the certificate and domain expiry dates once a day. Confirm each failure with a second test or from a second region before alerting, to avoid false alerts.

Why monitor a keyword rather than the HTTP code?

A 200 code does not guarantee that the page works. A database error, a blank page, a defacement after a hack or a broken theme can all be served with a 200 code. A keyword probe checks that an expected text, for example the brand name or an element of the footer, is actually present in the response, and alerts you if it is not.

Does an outage of a few hours hurt SEO?

An outage of a few hours generally has little lasting effect. Googlebot slows down its crawling when it meets server errors, then returns to its usual pace once the site is back. The risk grows when errors last several days: pages can then drop out of the index. A robots.txt returning a 5xx error can suspend crawling of the whole site, which is why it is worth monitoring.

Do you have to pay to monitor a site's uptime?

No, free monitoring is enough for most sites. UptimeRobot's free plan offers checks every five minutes, and Uptime Kuma is open-source software to install on a machine separate from the site. Paid plans add shorter intervals, checks from several regions, phone calls and advanced status pages, which are useful for a store or a critical service.

Updated on

Topic checklist (PDF)

And now?

In the “Security and infrastructure” topic

  1. Use HTTPS everywhere
  2. Check SSL/TLS and automatic renewal
  3. Redirect HTTP to HTTPS
  4. Fix mixed content
  5. Configure security headers
  6. Configure HSTS if appropriate
  7. Update the CMS, plugins and dependencies
  8. Remove unnecessary plugins
  9. Automate backups and test restores
  10. Monitor for hacking and content or link injection
  11. Check Search Console security issues
  12. Check manual actions
  13. Monitor uptime and alerts
  14. Protect private information with access control