返回顶部
u

uptimecheck运行状态检查

Check if URLs and API endpoints are up or down with response times and status codes. Use when asked to monitor uptime, check if a website is down, measure HTTP response times, track endpoint health over time, or verify that services are responding. Supports batch checking from files, history tracking with JSONL storage, and configurable timeouts. Zero dependencies — pure Python stdlib.

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

uptimecheck

uptimecheck ✅

轻量级URL在线状态监控工具,支持响应时间测量和历史记录追踪。

命令

检查端点

bash

检查一个或多个URL

python3 scripts/uptimecheck.py check https://github.com https://api.example.com

从文件读取URL(每行一个URL,支持#注释)

python3 scripts/uptimecheck.py check -f urls.txt

保存结果至历史记录用于趋势分析

python3 scripts/uptimecheck.py check https://myapi.com --save

自定义超时时间(默认10秒)

python3 scripts/uptimecheck.py check https://slow-api.com -t 30

查看历史记录

bash

最近检查记录

python3 scripts/uptimecheck.py history

按URL筛选

python3 scripts/uptimecheck.py history --url github.com

显示最近N条记录

python3 scripts/uptimecheck.py history -n 100

输出

  • - ✅ 表示2xx-4xx响应(客户端错误视为在线)
  • ❌ 表示5xx、超时、DNS解析失败、连接被拒绝
  • 响应时间(毫秒)
  • 包含故障端点数量的摘要信息

历史记录存储

结果保存至 ~/.uptimecheck/checks.jsonl — 每行一个JSON对象,包含url、status、ms、ok、timestamp字段。

退出码

  • - 0: 所有端点正常响应
  • 1: 一个或多个端点故障(适用于CI/定时任务告警)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 uptimecheck-1775973622 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 uptimecheck-1775973622 技能

通过命令行安装

skillhub install uptimecheck-1775973622

下载

⬇ 下载 uptimecheck v1.0.0(免费)

文件大小: 4.52 KB | 发布时间: 2026-4-13 12:26

v1.0.0 最新 2026-4-13 12:26
Initial release of uptimecheck: simple, dependency-free uptime monitoring for URLs and APIs.

- Check if one or multiple URLs/endpoints are up, with response time and HTTP status.
- Supports batch checking from files, with comment lines.
- History and trend tracking: save results as JSON lines for later review.
- View history with filters (by URL, recent N entries).
- Configurable HTTP timeout.
- Intuitive output with clear ✅/❌ indicators, response times, and summary.
- Exit codes for easy integration with CI or scripts.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部