Site Health Check
Quick HTTP health checks for your production sites.
Usage
{baseDir}/scripts/check.sh
Setup
Edit scripts/check.sh to add your sites:
SITES=(
"https://yoursite.com|Your Site|expected text"
"https://app.yoursite.com|Your App|expected text"
)
Each entry: URL|Display Name|Text to expect in response (optional text check).
How It Works
- Sends a GET request to each URL
- Checks for HTTP 200 (follows redirects)
- Optionally verifies response contains expected text
- Reports pass/fail for each site
- Returns non-zero exit code if any site is down
Integration with Heartbeats
Add to your HEARTBEAT.md:
## Site Health Check (every heartbeat)
1. Run `~/clawd/skills/site-health/scripts/check.sh`
2. If ANY failures: alert immediately