Once you manage more than 5–10 client websites, SaaS uptime monitors get expensive fast—especially if you want white-label status pages, SSL expiry alerts, and commercial client usage (which free tiers usually restrict).
You can build a surprisingly resilient, zero-server monitoring stack using Python's standard library + GitHub Actions + GitHub Pages for $0/month—as long as you avoid the 4 classic traps that break DIY uptime scripts.
Trap 1: Alerting on Single Transient Failures
GitHub Actions runners occasionally hit brief network blips. If you fire a Discord or Slack webhook on the first timeout, you'll get woken up by false alarms.
Fix: Always implement retry-before-alert (e.g., 2 retries with a 5-second backoff) and stateful transition deduplication (history.json):
- Only fire alerts when a site changes state:
UP -> DOWN,DOWN -> UP(recovery),UP -> DEGRADED, orDOWN -> DEGRADED. - Never re-alert every 15 minutes while a site stays down.
Trap 2: Using Naive Full-HTML Hashing for Defacement / Regression Detection
Hashing the full HTML response sounds clever until you monitor a site with CSRF tokens, analytics timestamps, or SSR nonces—every check becomes a false alarm.
Fix: Use targeted assertions instead:
-
must_contain: Verify your brand/footer string is still present (catches silent HTTP 200 blank screens or defacement). -
must_not_contain: Catch"Database error","502 Bad Gateway", or"Fatal error"even when the server returns HTTP 200. -
check_security_drift: Alert if a deploy accidentally dropsStrict-Transport-Security,X-Content-Type-Options, orX-Frame-Options.
(If you need to generate baseline security headers for Cloudflare, Nginx, Vercel, or Next.js first, I built a free zero-login generator here: https://webpulse.taijibala.com/)
Trap 3: Committing Monitoring State to main Every 15 Minutes
Running a cron job every 15 minutes creates 35,000+ commits per year. Pushing those to main ruins your repo history.
Fix: Store compact rolling 30-day daily rollups + the last 50 incidents in a tiny < 50 KB history.json, and force-push it to an isolated orphan branch (pulsewatch-state) from /tmp after deploying your static status page to GitHub Pages:
- name: Persist compact history.json to pulsewatch-state branch
run: |
rm -rf /tmp/pw-state-repo && mkdir -p /tmp/pw-state-repo
cp history.json /tmp/pw-state-repo/history.json
cd /tmp/pw-state-repo
git init -b pulsewatch-state
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add history.json
git commit -m "chore: update rolling history"
git remote add origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"
git push -f origin pulsewatch-state
Trap 4: Ignoring GitHub Actions Cron Tradeoffs
Be honest about what GitHub Actions is good at:
-
Great for: 15-minute client site monitoring, SSL expiry warnings (
<= 14 days), security header drift, and free static status pages. - Not ideal for: Strict sub-minute SLA checks (GitHub cron can lag 5–30 min at peak UTC hours and pauses after 60 days of repo inactivity).
If you ever need strict 1-minute checks, the exact same zero-dependency Python script runs cleanly on any $4 Linux VPS with a 1-line crontab:
*/1 * * * * cd /opt/pulsewatch && PULSEWATCH_DISCORD_WEBHOOK="https://..." python3 -m pulsewatch --config monitors.json --history history.json --status-out /var/www/status/index.html
Want This Ready Out of the Box?
If you'd rather skip writing the concurrent checker, retry/dedup engine, Discord/Slack/Telegram webhooks, and 30-day status page UI yourself, I packaged the complete zero-dependency Python toolkit (PulseWatch v1.0.0, $12 one-time) with:
- HTTP, TTFB degradation, SSL expiry, content assertions & security-header drift checks
- Retry-before-alert + transition-only alerts (Discord, Slack, Telegram, Generic JSON +
--test-alert) - White-label bilingual (
EN / 繁體中文) 30-day Status Pages +--split-by-client(generate both an agency master dashboard and separate per-client status pages) - Ready-to-drop
.github/workflows/pulsewatch.yml
Check it out here: https://taijibala.gumroad.com/l/yxnyuc
What are you currently using to monitor client websites or side projects? Curious how others balance cost vs. alerting reliability!
How are you handling uptime monitoring for small client sites right now — paying per-monitor SaaS, self-hosting Uptime Kuma, or running lightweight GitHub Actions?
Top comments (0)