Generate a lightweight static HTML status page for self-hosted services. Checks health endpoints, ping, SSL certificates, and uptime history. Outputs a self-contained dark-theme HTML file (Upptime/Cachet-style) that can be served locally or pushed to a GitHub Gist. Triggers on: status page, service status, uptime, are my services up, health check, service monitor, generate status page, check my services.
为所有自托管服务生成静态HTML状态页面。
~/.openclaw/workspace/skills/status-page-gen/
复制示例配置文件并进行编辑:
bash
cp ~/.openclaw/workspace/skills/status-page-gen/assets/services.example.json \
~/.openclaw/workspace/skills/status-page-gen/assets/services.json
使用实际的服务名称、URL和健康检查端点编辑 services.json。
bash
cd ~/.openclaw/workspace/skills/status-page-gen
python3 scripts/checkservices.py --config assets/services.json --output /tmp/statuscheck.json
python3 scripts/checkcerts.py --config assets/services.json --output /tmp/certcheck.json
python3 scripts/history.py --append /tmp/status_check.json --db assets/history.json
python3 scripts/generate_page.py \
--services /tmp/status_check.json \
--certs /tmp/cert_check.json \
--history assets/history.json \
--output ~/status.html
在浏览器中打开 ~/status.html。
添加到crontab(crontab -e):
/5 * cd ~/.openclaw/workspace/skills/status-page-gen && \
python3 scripts/checkservices.py --config assets/services.json --output /tmp/statuscheck.json && \
python3 scripts/checkcerts.py --config assets/services.json --output /tmp/certcheck.json && \
python3 scripts/history.py --append /tmp/status_check.json --db assets/history.json && \
python3 scripts/generatepage.py --services /tmp/statuscheck.json --certs /tmp/cert_check.json --history assets/history.json --output ~/status.html
| 脚本 | 用途 |
|---|---|
| checkservices.py | HTTP健康检查 + ping + 响应时间 |
| checkcerts.py |
完整示例请参见 assets/services.example.json。每个服务条目:
json
{
name: Grafana,
url: https://grafana.example.com,
health_endpoint: /api/health,
expected_status: 200,
ping_host: grafana.example.com,
tags: [monitoring]
}
详细配置、GitHub Gist发布和高级调度请参见 references/setup-guide.md。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 status-page-gen-1775931321 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 status-page-gen-1775931321 技能
skillhub install status-page-gen-1775931321
文件大小: 17.69 KB | 发布时间: 2026-4-12 11:31