Monitor one or more websites for health issues. Detect downtime, expiring SSL certs, slow responses, and content changes — then report or alert.
When user asks to check a single URL right now:
scripts/check_site.sh For ongoing monitoring, maintain a config at user's chosen location (default: ~/.openclaw/workspace/site-monitor.json):
{
"sites": [
{
"url": "https://example.com",
"name": "Main Site",
"checks": ["uptime", "ssl", "response_time", "content"],
"alert_threshold_ms": 3000,
"ssl_warn_days": 14,
"content_selector": "title"
}
],
"defaults": {
"checks": ["uptime", "ssl", "response_time"],
"alert_threshold_ms": 5000,
"ssl_warn_days": 30
}
}
scripts/check_ssl.sh scripts/check_site.sh## 🟢 example.com — Healthy
| Check | Status | Detail |
|---------------|--------|---------------------------|
| Uptime | ✅ UP | 200 OK (143ms) |
| SSL | ✅ OK | Expires in 87 days |
| Response Time | ✅ OK | 342ms (threshold: 5000ms) |
| Content | — Same | No changes detected |
## Site Health — 2026-03-26
| Site | Status | Issues |
|------------|--------|----------------|
| example.com| 🟢 OK | — |
| api.foo.io | 🟡 WARN| SSL: 12 days |
| shop.bar | 🔴 DOWN| 503 error |
Alert when: site DOWN, SSL within warning window, response >2x threshold, 2+ consecutive failures.
Format: ⚠️ [site] — [issue]. [detail]. Checked at [time].
Suggest cron job for recurring checks (30-60 min interval for production). Store last 100 results per site in ~/.openclaw/workspace/.site-monitor-history.json.
scripts/check_site.sh — HTTP health check, outputs JSON (status, timing, headers)scripts/check_ssl.sh — SSL cert check, outputs JSON (issuer, expiry, days remaining)共 1 个版本