返回顶部
c

clank-uptime运行时间追踪

Track website uptime, response times, and availability. CSV-based history, 24h stats with visual bars, avg/min/max latency. Lightweight alternative to paid monitoring services.

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

clank-uptime

clank-uptime

轻量级命令行工具,用于跟踪网站运行时间和响应时间变化。

使用时机(触发短语)

当用户提出以下任一问题时使用此技能:

  • - 我的网站是否在线?
  • 检查网站X是否在线
  • 监控我的网站运行时间
  • ...的响应时间是多少?
  • 显示可用性统计

快速开始

bash

添加网站


clank-uptime add https://example.com --name 我的网站
clank-uptime add https://api.example.com --name API

立即检查所有网站

clank-uptime check

显示24小时可用性统计

clank-uptime stats

列出被监控的网站

clank-uptime list

移除一个网站

clank-uptime remove https://example.com

命令

命令描述
add <URL> [--name NAME]添加网站到监控列表
check
检查所有网站,追加到历史记录 | | stats | 显示24小时可用性和延迟统计 | | list | 列出所有被监控的网站 | | remove | 从监控列表中移除网站 |

输出示例

检查

🔍 正在检查3个网站...

✅ 我的网站: 200 (0.092秒)
✅ API: 200 (0.056秒)
⚠️ 旧网站: 503 (1.234秒)

📊 检查时间: 2026-03-29T04:22:38Z

统计

📊 运行时间统计(最近24小时)
==================================================

我的网站
[████████████████████] 100.0% (12/12次检查)
⚡ 平均: 0.089秒 | 最小: 0.056秒 | 最大: 0.142秒

API
[██████████████████░░] 91.7% (11/12次检查)
⚡ 平均: 0.067秒 | 最小: 0.041秒 | 最大: 0.098秒

数据存储

~/.clank-uptime/
├── sites.json # 网站配置
└── history/
└── /
└── checks.csv # 时间戳,状态,响应时间

使用cron自动化

bash

每5分钟检查一次


/5 * clank-uptime check > /dev/null 2>&1

每日统计报告

0 8 * clank-uptime stats | mail -s 每日运行时间报告 you@email.com

提示

  • - 定期运行 check(通过cron或心跳)以构建历史数据
  • stats 需要至少几小时的数据才能获得有意义的结果
  • 使用 --name 提高可读性;默认为URL
  • 历史记录基于CSV格式——易于使用其他工具解析或可视化

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clank-uptime-1775944733 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clank-uptime-1775944733 技能

通过命令行安装

skillhub install clank-uptime-1775944733

下载

⬇ 下载 clank-uptime v1.0.0(免费)

文件大小: 1.81 KB | 发布时间: 2026-4-12 09:23

v1.0.0 最新 2026-4-12 09:23
- Initial release of clank-uptime: lightweight CLI tool for website uptime and response time monitoring.
- Tracks availability and latency with CSV-based history and 24-hour stats (includes visual bar representation and avg/min/max latency).
- Provides commands to add/remove sites, check status, view stats, and list monitored sites.
- Designed as a simple, free alternative to paid uptime monitoring services.
- Requires curl and python3; stores configuration and history in ~/.clank-uptime/.

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

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

p2p_official_large
返回顶部