DevOps v1.0.0

uptime-tool

Show system uptime, load average, active user count, and boot time. Use for system health checks, monitoring, and...

dinghaibin 更新于 2026-05-10 1 浏览
下载 SKILL

技能说明

Show system uptime, load average, active user count, and boot time. Use for system health checks, monitoring, and diagnostics.

使用场景

Uptime Tool — System Uptime & Load Monitor

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/uptime-tool
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

5 个文件 · 16 kB
SKILL.md text/markdown
---
name: uptime-tool
description: Show system uptime, load average, active user count, and boot time. Use for system health checks, monitoring, and diagnostics.
---

# Uptime Tool — System Uptime & Load Monitor

Display how long the system has been running since last boot, current user sessions, and CPU load averages. Essential for health checks, reboot verification, and capacity monitoring.

## Quick Start

```bash
# Show system uptime
uptime-tool

# Show uptime plus JSON output for monitoring
uptime-tool --json
```

## Usage

```bash
uptime-tool [OPTIONS]

Options:
  --json       Output as structured JSON
  --pretty     Human-readable format with emojis (default)
  --since      Show boot time timestamp
  --seconds    Show uptime in seconds only
  --compare    Compare with last-known value (requires --state-file)
  --watch N    Monitor continuously, N second intervals
  --alert N    Alert if uptime < N seconds (short uptime = recent reboot)
```

## Examples

```bash
# Standard uptime output
uptime-tool

# Machine-readable JSON for monitoring
uptime-tool --json

# Show boot time
uptime-tool --since

# Watch every 30 seconds
uptime-tool --watch 30

# Alert if system just rebooted (< 60 seconds uptime)
uptime-tool --alert 60

# Uptime in seconds for scripts
uptime-tool --seconds
```

## Features

- **Standard uptime display** with load averages
- **JSON output** for monitoring pipelines
- **Boot time** detection (when did the system start?)
- **Continuous watch** mode for real-time monitoring
- **Alert thresholds** for restart detection
- **Compare mode** detects unexpected reboots
- **Cross-platform** — works on Linux, macOS, BSD

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。