← 返回
未分类 中文

Status Page Gen

Generate a dark-themed static HTML status page summarizing health checks, ping, SSL certs, and uptime for self-hosted services from a JSON config.
从JSON配置生成深色主题的静态HTML状态页面,汇总自托管服务的健康检查、ping、SSL证书和运行时间
newageinvestments25-byte
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 397
下载
💾 1
安装
1
版本
#latest

概述

status-page-gen

Generate a static HTML status page for all your self-hosted services.

Skill Location

~/.openclaw/workspace/skills/status-page-gen/

Quick Start

1. Configure services

Copy the example config and edit it:

cp ~/.openclaw/workspace/skills/status-page-gen/assets/services.example.json \
   ~/.openclaw/workspace/skills/status-page-gen/assets/services.json

Edit services.json with your actual service names, URLs, and health endpoints.

2. Run a full check and generate the page

cd ~/.openclaw/workspace/skills/status-page-gen

python3 scripts/check_services.py --config assets/services.json --output /tmp/status_check.json
python3 scripts/check_certs.py --config assets/services.json --output /tmp/cert_check.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

Open ~/status.html in a browser.

3. Schedule updates (cron)

Add to crontab (crontab -e):

*/5 * * * * cd ~/.openclaw/workspace/skills/status-page-gen && \
  python3 scripts/check_services.py --config assets/services.json --output /tmp/status_check.json && \
  python3 scripts/check_certs.py --config assets/services.json --output /tmp/cert_check.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

Scripts

ScriptPurpose
------
check_services.pyHTTP health checks + ping + response time
check_certs.pySSL certificate expiry validation
history.pyAppend results to log, compute uptime %
generate_page.pyRender self-contained HTML status page

Config Format (services.json)

See assets/services.example.json for a full example. Each service entry:

{
  "name": "Grafana",
  "url": "https://grafana.example.com",
  "health_endpoint": "/api/health",
  "expected_status": 200,
  "ping_host": "grafana.example.com",
  "tags": ["monitoring"]
}
  • health_endpoint — path appended to url for health check (default: /)
  • expected_status — HTTP status code to consider "up" (default: 200)
  • ping_host — hostname for ICMP ping (optional, derived from url if omitted)

References

See references/setup-guide.md for detailed configuration, GitHub Gist publishing, and advanced scheduling.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 18:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Container Update Advisor

newageinvestments25-byte
检查正在运行的 Docker 容器,查找更新的镜像版本,生成优先级更新报告。获取发行说明,标记破坏性变更与安全更新。
★ 0 📥 438

Workflow Crystallizer

newageinvestments25-byte
分析记忆日志,检测重复出现的模式,并建议自动化(cron 任务、技能或工作流快捷方式)。代理会逐步构建自己的快捷方式。
★ 0 📥 441

Homelab Runbook

newageinvestments25-byte
扫描并记录本机所有运行中的服务 — Docker 容器、系统服务(launchd/systemd)以及开放的监听端口,生成可读的文档。
★ 0 📥 440