360 Secure SkillHub
360 安全技能中心

Uptime

核心功能:查看系统运行时长、负载等状态;检测单/多URL可达性及响应指标;记录、查询系统运行快照历史;设置网站故障邮件告警;查看系统启动时间。典型场景:运维日常巡检、网站可用性排查、多站点批量监控、故障告警需求。通过命令行输入指令,输出终端文本,日志存本地,告警以邮件发送。

bytesagain
bytesagain
热度 48.01
最近更新 2026-03-27 14:48:57
分类:自动化依赖:代码执行 / 读写文件应用场景: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)