← 返回
未分类 中文

VM Health Check

🖥️ Instant VM health checks — no config needed after first run. Point it at any Docker-based Linux server and get a clean report covering CPU, memory, disk,...
🖥️ 即时虚拟机健康检查——首次运行后无需配置。指向任何基于Docker的Linux服务器,获取涵盖CPU、内存、磁盘等信息的清晰报告。
tonylnng tonylnng 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 612
下载
💾 1
安装
1
版本
#latest

概述

tonic-vm-check

SSH into a Docker-based VM and report system health, container status, DB sizes, and disk usage.

Step 1: Load VM Config

Before running any check, look for this block in TOOLS.md:

### tonic-vm-check
- VM_HOST: <host>
- VM_USER: <user>
- SSH_KEY: <path>

If found: extract the values and proceed to Step 2.

If not found: ask the user once:

> To check your VM, I need a few details (only asked once — saved to TOOLS.md):

> 1. VM IP or hostname

> 2. SSH username (default: ubuntu)

> 3. Path to SSH private key (default: ~/.ssh/id_rsa)

Then append to TOOLS.md:

### tonic-vm-check
- VM_HOST: <answer>
- VM_USER: <answer>
- SSH_KEY: <answer>

Confirm saved, then proceed.

Step 2: Run the Check

VM_HOST=<host> VM_USER=<user> SSH_KEY=<key> bash skills/tonic-vm-check/scripts/vm-check.sh [section]

Sections: all (default) · system · disk · containers · db · docker-df · cleanup

Step 3: Report

Summarise results:

🖥️ System — Uptime, CPU idle%, load average, memory (total / used / available)

💾 Disk/ usage %, used, free

🐳 Docker — Top containers by MEM USAGE; flag any not healthy or recently restarted

🗄️ DB Sizes — MySQL and Postgres databases auto-detected on the VM

🧹 Cleanup Opportunities — Reclaimable image/cache space; stopped containers worth removing

Always flag items that exceed thresholds:

MetricWarningCritical
---------------------------
Disk usage>70%>85%
Memory used>80%>90%
Load avg (1m)>2.0>4.0
Single container MEM>1 GB>2 GB

Cleanup Safety Rules

  • docker image prune -af — safe (unused images only)
  • docker builder prune -f — safe (build cache only, no data loss)
  • docker container prune — safe only for stopped containers
  • Never run docker system prune -af without explicit user approval (destroys volumes)

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-02 02:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Learn

tonylnng
通过从纠正和任务自评中学习实现持续自我改进。使用时机:(1)用户纠正智能体(如“不对,那是错的”,“其实,我……)。
★ 0 📥 992
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,505
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,841