返回顶部
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
安全检测
已通过
95
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

uptime-monitor

技能名称: 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.

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

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

p2p_official_large
返回顶部