Used to quickly collect and report server operating status (CPU/memory/disk/load/network/Docker).
When to use
When the user says:
- "Check the server status"
- "Report the machine health status"
- "Send me the current server resource usage"
Execution steps
- Run the status collection script:
bash /root/.pi/agent/skills/server-status-push/collect-status.sh
- Reply to the user directly with the results.
- If it is available in the current environment
send_messagetool, you can additionally callsend_messageto proactively push a summary once.
Output requirements
- Give the conclusion first: normal/alert
- Then give the key metrics:
- load average
- CPU core count
- Memory usage
- Root partition usage
- Docker container status (if available)
- If anomalies are found (for example disk > 85%, memory > 90%), clearly mark them and give recommendations.
Quick diagnosis thresholds (default)
- Disk usage > 85%: alert
- Memory usage > 90%: alert
- 1-minute load > CPU core count × 1.5: alert
Example
bash /root/.pi/agent/skills/server-status-push/collect-status.sh