📦 Site Health Monitor — 技能工具
v1.0.0Monitor websites for uptime, SSL certificate expiry, response time, HTTP errors, and content changes. Generate health reports and send alerts when issues are...
0· 37·0 当前·0 累计
安全扫描
OpenClaw
安全
high confidenceThe skill's code and instructions match its stated purpose (website/SSL checks); the main issues are missing declared dependencies and some portability/operational notes, but nothing here appears malicious.
评估建议
This skill appears to do what it claims, but review and prepare before installing: 1) The package metadata omits required binaries — ensure your environment has curl, openssl, python3 (and standard Unix utilities like mktemp, grep, sed). 2) The scripts use GNU-style date parsing; macOS (BSD date) may fail — test on your platform. 3) Alerts are referenced but no delivery method (webhook/email/Slack) is implemented — you will need to add an alerting integration if you want notifications. 4) The sc...详细分析 ▾
ℹ 用途与能力
The name/description align with the provided scripts: check_site.sh (HTTP/timing) and check_ssl.sh (openssl certificate checks). However the registry metadata lists no required binaries while the scripts rely on curl, openssl, python3 (for JSON parsing), mktemp, and typical GNU date features — this mismatch is an omission that should be fixed before use.
ℹ 指令范围
SKILL.md stays within scope: it runs the included scripts, stores a config/history in the user's home, and recommends cron for scheduling. It references 'send alerts' but does not implement or describe external alert endpoints or notification mechanisms (no webhook/email provider configured), so alert delivery is undefined. The instructions do not ask for unrelated files, secrets, or other system credentials.
✓ 安装机制
There is no install spec (instruction-only) and the scripts are included in the package; nothing is downloaded at install time. This minimizes install-time risk.
✓ 凭证需求
The skill requests no environment variables or credentials and the scripts do not attempt to read secrets. They only perform network connections to the target sites and write config/history under the user's home directory.
✓ 持久化与权限
always:false and no cross-skill/system-wide modifications. The skill stores config/history in ~/.openclaw/workspace by default — normal for a monitoring tool and not an elevated privilege.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/4/11
Initial release
● 无害
安装命令
点击复制官方npx clawhub@latest install site-health-monitor
镜像加速npx clawhub@latest install site-health-monitor --registry https://cn.longxiaskill.com镜像同步中
技能文档
Monitor one or more websites for health issues. Detect downtime, expiring SSL certs, slow responses, and content changes — then report or alert.
Quick Check (Single URL)
When user asks to check a single URL right now:
- Run
scripts/check_site.sh - Parse the JSON output
- Present a formatted health report
Monitored Sites Config
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
}
}
Health Checks
1. Uptime
- HTTP GET to URL
- Pass: 2xx/3xx status
- Warning: 4xx status
- Fail: 5xx, connection refused, timeout (>10s)
2. SSL Certificate
- Run
scripts/check_ssl.sh - Pass: Valid, >30 days to expiry
- Warning: <30 days to expiry (configurable)
- Fail: Expired, self-signed, or missing
3. Response Time
- Measure TTFB + transfer via
scripts/check_site.sh - Pass: Under threshold (default 5000ms)
- Warning: 1-2x threshold
- Fail: >2x threshold or timeout
4. Content Changes (Planned)
- Fetch page, extract text, hash it
- Compare against stored hash
- Report if content changed since last check
- Note: This feature is planned for v1.1
Reports
Single Site
## 🟢 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
Multi-Site Summary
## Site Health — 2026-03-26
Site Status Issues example.com 🟢 OK — api.foo.io 🟡 WARN SSL: 12 days shop.bar 🔴 DOWN 503 error
Alerts
Alert when: site DOWN, SSL within warning window, response >2x threshold, 2+ consecutive failures.Format: ⚠️ [site] — [issue]. [detail]. Checked at [time].
Scheduled Monitoring
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
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)