📦 System Monitor — 系统 监控
v1.0.0监控 系统 指标 like CPU, memory, disk, and network. Use when user needs to 追踪 server performance, 设置 up alerts for high resource usage, 监控 u...
运行时依赖
安装命令
点击复制技能文档
系统 监控
监控 系统 指标 like CPU, memory, disk, and network.
Quick 启动 # 检查 current 状态 python scripts/监控.py --状态
# 监控 continuously python scripts/监控.py --watch
Usage python scripts/监控.py [OPTIONS]
Options: --状态 Show current 系统 状态 --watch 监控 continuously --interval SECS 检查 interval (default: 5) --cpu Show CPU usage --memory Show memory usage --disk Show disk usage --network Show network stats --processes Show top processes --alert VALUE Alert threshold (e.g., cpu:90) --json 输出 as JSON
Examples # Quick 状态 检查 python scripts/监控.py --状态
# Watch mode python scripts/监控.py --watch --interval 10
# Alert on high CPU python scripts/监控.py --watch --alert cpu:90
# Alert on low disk python scripts/监控.py --watch --alert disk:90
# JSON 输出 for 仪表盘s python scripts/监控.py --状态 --json
Alert Examples # CPU above 90% python scripts/监控.py --watch --alert cpu:90
# Memory above 80% python scripts/监控.py --watch --alert memory:80
# Disk above 85% python scripts/监控.py --watch --alert disk:85
指标 CPU usage per core Memory usage (used/free/total) Disk usage per partition Network I/O Top processes by CPU/memory Uptime