system-health
Monitor system health: CPU, memory, disk, processes, and network. Generate health reports.
Usage
CODEBLOCK0
Commands
- -
check — Run a quick health check - INLINECODE1 — Generate a detailed system report
- INLINECODE2 — Continuous monitoring with periodic checks
Options
- -
--category — Check specific category: cpu, memory, disk, network, INLINECODE8 - INLINECODE9 — Monitoring interval in seconds (default: 60)
- INLINECODE10 — Write report to file
- INLINECODE11 — Alert threshold percentage for disk/memory (default: 80)
system-health
监控系统健康状态:CPU、内存、磁盘、进程和网络。生成健康报告。
使用方法
bash
快速健康检查
python3 scripts/syshealth.py check
生成完整报告
python3 scripts/syshealth.py report
持续监控
python3 scripts/syshealth.py monitor --interval 60
特定检查
python3 scripts/syshealth.py check --category disk
命令
- - check — 运行快速健康检查
- report — 生成详细的系统报告
- monitor — 持续监控,定期检查
选项
- - --category — 检查特定类别:cpu、memory、disk、network、processes
- --interval — 监控间隔(秒),默认值:60
- --output, -o — 将报告写入文件
- --threshold — 磁盘/内存的告警阈值百分比,默认值:80