← 返回
未分类 中文

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.
监控网站/服务的可用性,在宕机时发送告警。适用于检查网站可达性、监控服务健康状态或在服务下线时获取提醒。
kryzl19
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 409
下载
💾 0
安装
1
版本
#latest

概述

Uptime Monitor

Monitor HTTP endpoints and alert when services go down.

Environment Variables

VariableRequiredDefaultDescription
------------------------------------------
MONITOR_URLSYesComma-separated list of URLs to monitor
ALERT_WEBHOOK_URLNoWebhook URL to send alerts (Discord, Slack, etc.)
CHECK_INTERVALNo60Interval in seconds between checks
ALERT_EMAILNoEmail address for alert notifications

Scripts

check.sh — HTTP Health Check

Performs HTTP check with response time measurement.

./scripts/check.sh <url>

Output:

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

Exit code: 0 = up, 1 = down

alert.sh — Send Alert

Sends alert via webhook or email when a service is down.

./scripts/alert.sh <url> <status_code> <response_time> <error_message>

report.sh — Uptime Report

Generates a daily uptime summary from the log file.

./scripts/report.sh

Output: Markdown-formatted report with uptime % per URL.

Usage Example

export MONITOR_URLS="https://example.com,https://api.example.com"
export ALERT_WEBHOOK_URL="https://discord.com/api/webhooks/..."
export CHECK_INTERVAL=60

# Run a single check
./scripts/check.sh https://example.com

# Generate report
./scripts/report.sh

Notes

  • Uses curl with a 10-second timeout for checks
  • Logs results to ~/.openclaw/workspace/skills/uptime-monitor/logs/status.log
  • Alert webhook expects a JSON payload (compatible with Discord/Slack/PagerDuty)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 18:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Seo Keyword Researcher

kryzl19
为任意主题进行SEO关键词调研,并生成完整文章摘要,包括主关键词、次关键词、竞争分析、文章结构等。
★ 0 📥 405

Content Summarizer

kryzl19
获取任意URL并生成结构化内容摘要,采用提取式摘要技术,包含AI增强提示和结构化输出模板,提取清洁内容。
★ 1 📥 1,700

Seo Reporter

kryzl19
对URL进行SEO因素审计并生成可操作的Markdown报告。适用于分析、检查或审计网页SEO表现,涵盖标题等关键指标。
★ 0 📥 415