An external uptime check pointed at https://example.com/ behind Cloudflare tests the whole chain — public DNS, the nearest Cloudflare colo, the edge-to-origin leg, and your server — and tells you almost nothing about which link failed. Worse, it can pass while your origin is down, because cached assets keep serving from the edge. A monitoring setup you can trust needs two checks with different answers: an edge check that measures what users experience, and an origin check that measures what you actually operate — reachable to the monitor without opening the origin to the world.
What’s happening
When your checker requests the proxied hostname, it resolves to Cloudflare anycast IPs and talks to the nearest colo of the monitoring provider’s network — possibly a different colo than your users hit. If the URL is cacheable and warm, the edge answers without consulting your origin: cf-cache-status: HIT, 200, green check, dead server. In the other direction, a bot-shaped monitor can get challenged by security features and report downtime that no human sees. Both failure modes come from the same root: the check is measuring the edge’s opinion, not the origin’s health.
The origin side has the opposite problem. If you followed good practice and firewalled the origin to Cloudflare’s IP ranges, your external monitor cannot reach it at all. The choices are explicit: allowlist the monitor’s source IPs, monitor from inside the network, expose a narrow health endpoint, or use Cloudflare’s own Health Checks — which, plan limits stated plainly, are a paid-plan feature (Pro and up); Free zones do not get standalone Health Checks.
What to check first
- What your current check actually requests: homepage (probably cacheable) or a health endpoint (hopefully not)?
- Whether monitor requests appear in Security Events as challenged or blocked — the false-down generator.
- Whether the origin firewall permits your monitoring provider’s published source IPs, if you plan to check it directly.
How to verify
# Is the monitored URL served from cache? If HIT, your check can lie.
curl -sI "https://example.com/" | grep -iE "cf-cache-status|cf-ray|age"
# A proper health path should be DYNAMIC or BYPASS, never HIT
curl -sI "https://example.com/health" | grep -iE "cf-cache-status|cf-ray"
# Origin check without touching public DNS: pin the IP
curl -sI --resolve example.com:443:<ORIGIN_IP> "https://example.com/health" \
--max-time 10
# Are your monitor's requests reaching the origin, or dying at the edge?
tail -f /var/log/nginx/access.log | grep -i "uptime\|statuscake\|kuma\|health"
If the edge check returns HIT while the --resolve check times out, you are looking at the exact scenario this article exists for: green dashboard, dead origin.
The fix
- Create a health endpoint and force it past the cache. A
/healthroute that touches the app and its database (a real query, notreturn 200), plus a Cache Rule setting Bypass cache on that path. Now the edge check exercises the full chain on every probe instead of replaying a cached 200. - Exempt the monitor from security features deliberately. A WAF custom rule that skips challenges when the request carries a secret header (
X-Monitor-Token: <long-random-value>) is cleaner than allowlisting rotating monitor IPs — configure your checker to send the header. Never solve this by loosening security for everyone. - Add a second, origin-direct check. From a monitor whose source IPs you can allowlist in the origin firewall, probe the origin IP with the correct
Host/SNI (the--resolvepattern above; self-hosted checkers like Uptime Kuma support this directly). If the origin has no public IP at all — tunnel-only setups — run the checker inside the network instead. - Alert on the combination, not each check alone. Edge up + origin down: users are coasting on cache; fix the origin before TTLs expire. Edge down + origin up: Cloudflare or DNS problem — check cloudflarestatus.com before touching your stack. Both down: it is you. The pair is the diagnosis; either check alone is just noise.
- Watch both certificates. The edge certificate and the origin certificate expire on different schedules from different issuers. Monitor expiry on both legs — a dead origin cert produces intermittent 526s long before anything else looks wrong.
When this fix is wrong
If your “downtime” is regional — one country’s users complaining while checks pass — single-location monitoring cannot see it regardless of configuration; you need multi-region probes or real-user data, and the synthetic vs real-user monitoring comparison covers that tradeoff. And if the origin sits behind Cloudflare Tunnel with no inbound ports, skip step 3’s external variant entirely — an internal checker or the tunnel’s own metrics are the honest options.
Common mistakes
- Monitoring only the cacheable homepage. The most common setup and the least informative: it primarily tests Cloudflare’s cache, which was never the thing you were worried about.
- Treating a challenge page as an outage. A 403 with
cf-mitigated: challengemeans your monitor got carded, not that the site is down. Fix the exemption, not the alert threshold. - Allowlisting the monitor in Cloudflare but not in the origin firewall (or vice versa). The check then measures a path no user takes, or fails on a firewall rule you forgot you wrote.
- Letting the health endpoint get indexed or hammered. Rate-limit it for everyone except the monitor token, and keep it out of sitemaps.
Prevention
Review the monitoring pair whenever the architecture changes — new origin IP, new firewall policy, tunnel migration — and once a quarter, kill the origin’s web service in a maintenance window and confirm both checks disagree the way they should. A monitoring setup you have never seen fail is a hypothesis, not a system. If “is it Cloudflare or is it us” keeps eating your evenings, that triage is literally the job of 24/7 Monitoring & Response — book a monitoring and response review.