闲社服务运行正常AI智能体自动化平台
u

在线监控

技能标识:uptime-monitor

Monitor uptime of websites/services and alert when down. Use when checking if a website is reachable, monitoring service health, or getting alerted on downtime.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

在线监控

技能名称: uptime-monitor
详细描述:

运行时间监控

监控HTTP端点,并在服务宕机时发出警报。

环境变量

变量必填默认值描述
MONITORURLS是—要监控的URL列表,以逗号分隔
ALERTWEBHOOK_URL
否 | — | 用于发送警报的Webhook URL(Discord、Slack等) | | CHECK_INTERVAL | 否 | 60 | 检查间隔时间(秒) | | ALERT_EMAIL | 否 | — | 用于警报通知的电子邮件地址 |

脚本

check.sh — HTTP健康检查

执行HTTP检查并测量响应时间。

bash
./scripts/check.sh

输出:

OK|https://example.com|200|245ms
FAIL|https://example.com|000|timeout

退出代码: 0 = 正常,1 = 宕机

alert.sh — 发送警报

当服务宕机时,通过Webhook或电子邮件发送警报。

bash
./scripts/alert.sh code> time>

report.sh — 运行时间报告

从日志文件生成每日运行时间摘要。

bash
./scripts/report.sh

输出: 以Markdown格式生成的报告,显示每个URL的运行时间百分比。

使用示例

bash
export MONITOR_URLS=https://example.com,https://api.example.com
export ALERTWEBHOOKURL=https://discord.com/api/webhooks/...
export CHECK_INTERVAL=60

运行单次检查

./scripts/check.sh https://example.com

生成报告

./scripts/report.sh

备注

  • - 使用curl进行检查,超时时间为10秒
  • 结果记录到~/.openclaw/workspace/skills/uptime-monitor/logs/status.log
  • 警报Webhook期望接收JSON格式的数据(兼容Discord/Slack/PagerDuty)

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 uptime-monitor-agent-1776021421 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 uptime-monitor-agent-1776021421 技能

通过命令行安装

skillhub install uptime-monitor-agent-1776021421

下载

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

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

v1.0.0 最新 2026-4-13 12:25
- Initial release of uptime-monitor-agent.
- Monitors specified HTTP endpoints and alerts when services go down.
- Supports configuration via environment variables for URLs, alert destinations, and check intervals.
- Provides scripts for checking site status, sending alerts (via webhook or email), and generating uptime reports.
- Results are logged for reporting and troubleshooting.
- Requires `curl` for HTTP checks.
返回顶部