返回顶部
s

status-page-gen状态页生成

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
94
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

status-page-gen

status-page-gen

为所有自托管服务生成静态HTML状态页面。

技能位置

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

快速开始

1. 配置服务

复制示例配置文件并进行编辑:

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

使用实际的服务名称、URL和健康检查端点编辑 services.json。

2. 运行完整检查并生成页面

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。

3. 定时更新(cron)

添加到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.pyHTTP健康检查 + ping + 响应时间
checkcerts.py
SSL证书过期验证 | | history.py | 将结果追加到日志,计算正常运行时间百分比 | | generate_page.py | 渲染自包含的HTML状态页面 |

配置格式(services.json)

完整示例请参见 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]
}

  • - healthendpoint — 附加到url后的健康检查路径(默认:/)
  • expectedstatus — 视为在线的HTTP状态码(默认:200)
  • ping_host — 用于ICMP ping的主机名(可选,省略时从url派生)

参考

详细配置、GitHub Gist发布和高级调度请参见 references/setup-guide.md。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 status-page-gen-1775931321 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 status-page-gen-1775931321 技能

通过命令行安装

skillhub install status-page-gen-1775931321

下载

⬇ 下载 status-page-gen v1.0.0(免费)

文件大小: 17.69 KB | 发布时间: 2026-4-12 11:31

v1.0.0 最新 2026-4-12 11:31
Initial release of status-page-gen.

- Generate a static, dark-themed HTML status page for self-hosted services.
- Checks include service health endpoints, ping, SSL cert expiry, and uptime history.
- Provides easy configuration via `services.json`.
- Includes scripts for service checks, certificate checking, history management, and HTML generation.
- Supports cron scheduling for automatic periodic updates.
- Output is self-contained and can be viewed locally or pushed to GitHub Gist.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部