360 Secure SkillHub
360 安全技能中心

Uptime

提供命令行方式检查系统负载、网站 HTTP 状态与连接耗时,支持记录和查看运行历史,并可在检测到站点不可用时发送邮件告警。依赖 Linux /proc 与 curl,可选 mail 命令。

bytesagain
bytesagain
热度 48.01
最近更新 2026-03-27 14:48:57
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add uptime
Metadata
name
Uptime
description
Monitor website availability and response times. Use when checking site status, benchmarking latency, tracking uptime history, or alerting on outages.
version
3.0.0
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["uptime","monitoring","website","http","ssl","availability","health","devops"]
categories
["Developer Tools","System Tools"]

Uptime

System and website uptime monitor. Check system load, test URL reachability with timing, log uptime history, and set up outage alerts.

Commands

Command Description
uptime status Show system uptime, load average, CPU count, and logged-in users
uptime check <url> Check if a URL is reachable (HTTP status, connect time, TTFB)
uptime log Log current system uptime snapshot to ~/.uptime-monitor/uptime.log
uptime history Show uptime log history (last 30 entries)
uptime alert <url> <email> Check URL and send email alert if down
uptime since Show system boot time
uptime multi <url1> <url2> ... Check multiple URLs at once with summary
uptime version Show version

Examples

uptime status                    # → uptime, load, users, hostname
uptime check https://example.com # → HTTP 200, connect 0.1s, TTFB 0.2s
uptime log                       # → saves snapshot to log file
uptime history                   # → shows recent log entries
uptime alert https://mysite.com admin@example.com  # → alerts if down
uptime since                     # → boot time
uptime multi https://google.com https://github.com # → batch check

Requirements

  • /proc/uptime, /proc/loadavg (Linux)
  • curl (for URL checks)
  • mail (optional, for email alerts)