Sys Health

Sys Health

trac3r00 1baf1bb 2 files · 5.9 KB Updated

File contents

Sys Health

The "is this box okay" check an agent should run before blaming code.

Commands

python3 scripts/sys_health.py
python3 scripts/sys_health.py --json --top 10
python3 scripts/sys_health.py --max-disk-pct 90 --max-mem-pct 85   # gate

Reports

Metric Source
Disk total/used/% statvfs
Memory total/used % vm_stat (macOS) or /proc/meminfo (Linux)
Load 1/5/15m sysctl vm.loadavg or /proc/loadavg
Top N processes by CPU ps
Zombie processes ps state Z

Exit 1 when any --max-*-pct budget is exceeded or zombies exist.

Pairs with

session-finder (which agents are consuming that CPU), net-probe (the network side of the same triage), log-analyzer (what the box's logs say after you learn it's resource-starved).

trac3r00/agent-skills/tree/main/skills/sys-health commit 1baf1bb7e5

Frequently asked questions

npx skillmds@latest add trac3r00/sys-health