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.
技能名称: uptime-monitor
详细描述:
监控HTTP端点,并在服务宕机时发出警报。
| 变量 | 必填 | 默认值 | 描述 |
|---|---|---|---|
| MONITORURLS | 是 | — | 要监控的URL列表,以逗号分隔 |
| ALERTWEBHOOK_URL |
执行HTTP检查并测量响应时间。
bash
./scripts/check.sh
输出:
OK|https://example.com|200|245ms
FAIL|https://example.com|000|timeout
退出代码: 0 = 正常,1 = 宕机
当服务宕机时,通过Webhook或电子邮件发送警报。
bash
./scripts/alert.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
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 uptime-monitor-agent-1776021421 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 uptime-monitor-agent-1776021421 技能
skillhub install uptime-monitor-agent-1776021421
文件大小: 4.51 KB | 发布时间: 2026-4-13 12:25