360 Secure SkillHub
360 安全技能中心

Uptime

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

分类:自动化
bytesagain
bytesagain
热度 6.00
最近更新 2026-03-27 14:48:57

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add bytesagain/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)