Skip to content
StaticScope
Overview
Get StaticScope

Monitoring a static site

Uptime checks, TLS expiry, broken links and form delivery, plus a smoke test to run after every publish.

Publishing Updated 21 November 2026 5 min read

A static site fails without a warning. There is no PHP error log to watch, no white screen and no database connection to drop. When it breaks, it is usually DNS, a certificate, a deploy that did not finish or a cache holding the old files. None of those announce themselves.

You need checks that run outside the site. A monitor watching the same host that serves the site is better than nothing; a monitor in another network is better still.

What the build already checks

StaticScope’s site check runs after the files are prepared. It reports references to files that are not in the build, pages that still point at WordPress, files nothing refers to, whether robots is blocking everything and how many pages the sitemaps list. The DeadLinks pass also removes links to files that are not in the site, and forms that post nowhere.

wp staticscope check --strict turns the first two into a non-zero exit, which is what a CI job needs. All of this is build-time. It tells you the copy is internally consistent. It cannot tell you the certificate expired this morning.

It also does not check external links. A link to another site that has gone away is invisible to the build and to most static hosts.

Uptime checks

Use an external service. UptimeRobot, Better Stack, Pingdom and Hetrix all do the same basic job, with different free tiers and alerting. The details change; the shape does not.

  • Check the homepage and one deep page. A homepage can be cached while a page and its assets are missing or stale.
  • Check from two regions if the plan allows it. A DNS or CDN problem is often regional.
  • Use a keyword check as well as a status code. A parked domain and a host error page can both return 200.
  • One to five minutes is enough for most sites. Faster checks mostly produce more alerts, not faster fixes.
  • Send alerts to a channel someone reads. An email to an unmonitored inbox is not monitoring.

Do not point a checker at the WordPress admin or the origin. Those are not the public site, and a check that fails during a deploy teaches you to ignore alerts.

TLS expiry

GitHub, Netlify and Cloudflare issue and renew certificates automatically. The remaining risk is a domain that stopped resolving, a validation record that was removed or a host that stopped renewing without an alert. Check the certificate as a visitor sees it, on both the apex and www if you serve both.

openssl s_client -connect example.com:443 -servername example.com \
  </dev/null 2>/dev/null | openssl x509 -noout -subject -dates

On your own server, confirm the renewal timer exists and run a dry run. Certbot’s timer is often enabled once and forgotten; a failed renewal after a package upgrade is harder to notice.

systemctl list-timers | grep certbot
certbot renew --dry-run

Alert at 14 days, not at expiry. Fourteen days is enough time to fix DNS or a challenge, and short enough that you cannot ignore it for a month.

Broken links

There are two different jobs here. Internal links are checked at build time by the site check, and the dead-link pass removes the ones it can see. External links need a crawl of the published site, because only then do you know what the rest of the web is doing.

  • Crawl the live domain after a publish, not the preview. Host rules and trailing-slash behaviour differ.
  • Check that a URL which should not exist returns 404. A host that returns 200 with the 404 page is a soft 404 and search engines dislike it.
  • Check that every redirect ends on a 200, not on another redirect or a 404.
  • Check the sitemap URLs themselves. A sitemap entry for a deleted page is a broken link you published on purpose.

Screaming Frog’s free tier and Lychee both work for a periodic crawl. Run one monthly and before a big content change. A full crawl after every publish is usually wasted effort unless the publish changed navigation.

Form delivery

A form that renders and does not deliver is worse than a form that is missing. Test delivery on a schedule as well as when someone complains.

  • Send a test submission once a month and confirm it arrives. Check spam and the provider’s dashboard as well as the inbox.
  • Web3Forms and a custom endpoint can be tested from the Forms screen or with wp staticscope forms test. Netlify has no remote test: publish and submit.
  • Watch for quota and plan limits on the provider. A free tier that stops at a number of submissions will stop without an alert.
  • If notifications stop, check the provider’s status page before rebuilding the site. The form markup is rarely the cause.

A post-publish smoke test

Six checks catch most bad publishes. Run them from outside the WordPress host, with the cache behaving as it would for a visitor.

#!/usr/bin/env bash
set -euo pipefail
base="https://example.com"

for path in / /about/ /contact/ /sitemap.xml; do
  code=$(curl -s -o /dev/null -w '%{http_code}' "$base$path")
  printf '%s %s\n' "$code" "$path"
  [ "$code" = "200" ] || exit 1
done

code=$(curl -s -o /dev/null -w '%{http_code}' "$base/no-such-page/")
[ "$code" = "404" ] || { echo "soft 404: got $code"; exit 1; }

curl -s "$base/" | grep -q "A phrase from the new page"

Change the paths to ones your site has, including the sitemap’s real name, and replace the phrase with something that only appears in the version you just published. A status check alone will pass on yesterday’s page.

Checklist

  • Homepage returns 200 and contains words from the new publish.
  • One deep page and one asset return 200.
  • A missing URL returns 404, not 200.
  • HTTPS works on the apex and www, and the certificate has more than 14 days left.
  • A canonical tag and the sitemap name the live domain.
  • One form submission arrives.
  • Uptime checks are green in two regions.
  • The deploy or upload log shows the commit or file set you expected.

That is ten minutes of work after a release. It is also the difference between finding a broken form yourself and hearing about it from a customer.

Next