| name | check-services |
| description | Check systemd service health on the Linux server and report any failed or degraded units |
| user-invocable | true |
| allowed-tools | ["Bash"] |
Check Services Skill
Purpose
Detect failed or degraded systemd services before the user notices an outage.
Workflow
- Run
systemctl --failed --no-legend to list all failed units
- Run
systemctl list-units --state=degraded --no-legend to list degraded units
- For each failed unit, run
systemctl status <unit> --no-pager -n 20 to get recent logs
- Check uptime of critical services: roonserver, docker, any unit in the failed list
- Check for recent OOM kills:
journalctl -k --since "1 hour ago" | grep -i "oom\|killed process"
Report Format
| Service | Status | Since | Last Error |
|---|
| ... | ... | ... | ... |
If no failed services: output "All monitored services are running."
Critical Services to Always Check
- roonserver
- docker (if present)
- Any service with OOMKilled in recent journal