Works with the AI Agents you already use
Linux Server Incident Triage: Disk, Memory, OOM, Services
by Saizul Amin
Find why a Linux server is slow or down from df, ps, dmesg and failed systemd units, then get a prioritised, safe fix list.
$9
Linux Server Incident Triage: Disk, Memory, OOM, Services
Example session with this skill installed
My VPS is slow and some services went down. Here is the output of df, ps, dmesg and failed systemd units. What's wrong and what do I do first?
- Read your context and instructions
- Compiled the linux server incident
I ran the bundled script from the incident-triage skill and reviewed its findings.
Demo data: this is the real, unedited output of the skill's script on the test fixture that ships with its source repo.
Script output
Incident triage snapshot (read-only)
[HIGH ] load: Load 9.80/8.41/6.02 on 2 CPU(s) (4.2x per CPU, 5 min)
top -o %CPU -b -n 1 | head -20
vmstat 1 5 # high 'wa' = waiting on disk, high 'st' = noisy neighbour
iostat -xz 1 3 # from sysstat: %util near 100 = disk bound
ps -eo state,pid,cmd | awk '$1 ~ /D/' # tasks stuck in IO
[HIGH ] memory: Only 3.8% memory available (148 MiB of 3915 MiB)
ps -eo pid,user,rss,%mem,cmd --sort=-rss | head -15
free -m
systemd-cgtop -m -n 1 # memory per service
[HIGH ] memory: Swap 90% used: the box is likely thrashing
vmstat 1 5 # si/so columns > 0 = actively swapping
[HIGH ] disk: / is 97% full (/dev/sda1)
sudo du -xh --max-depth=2 / 2>/dev/null | sort -h | tail -20
sudo journalctl --disk-usage
sudo find /var/log -xdev -type f -size +100M -exec ls -lh {} +
docker system df # if Docker is installed
sudo lsof +L1 # deleted files still held open (space not freed)
[HIGH ] disk: / inodes 92% used (many small files)
sudo find / -xdev -type f | cut -d/ -f2-4 | sort | uniq -c | sort -n | tail
Typical culprits: PHP sessions, mail queue, cache directories
[HIGH ] oom: OOM killer fired: mysqld x1, php-fpm8.3 x1
journalctl -k --since -24h | grep -iE 'out of memory|oom-kill'
systemctl status <service> # did it restart?
Set MemoryMax= on the service or a mem_limit on the container
[MEDIUM] disk: /var/lib/docker is 88% full (/dev/sdb1)
sudo du -xh --max-depth=2 /var/lib/docker 2>/dev/null | sort -h | tail -20
sudo journalctl --disk-usage
sudo find /var/log -xdev -type f -size +100M -exec ls -lh {} +
docker system df # if Docker is installed
sudo lsof +L1 # deleted files still held open (space not freed)
[MEDIUM] systemd: Failed units: mysql.service, certbot.service
systemctl status mysql.service
journalctl -u mysql.service -n 100 --no-pager
[INFO ] processes: Top processes by CPU
PID USER %CPU %MEM RSS ELAPSED COMMAND
2301 www-data 88.1 12.0 481000 01:02:11 php-fpm8.3
2302 www-data 75.3 11.8 473000 01:02:10 php-fpm8.3
1001 www-data 4.2 0.4 17000 3-01:00:00 nginx
Next steps
- Free disk space and fix the full filesystem first.
- Restart failed services and check why the OOM killer fired.
- Add monitoring and alerts for disk, memory and failed units.
Connects securely to your tools. The creator never sees your data.
About this skill
Step-by-step, read-only triage for a Linux server or website in trouble - high load or CPU, disk full (space or inodes), out-of-memory kills, failed systemd units, 502/503/504 and other 5xx errors, or the site being slow or down - with a snapshot script that flags the likely cause and exact next commands.
When to use it
Use when the user says the server is slow, down, unreachable, out of disk, out of memory, returning 502 Bad Gateway or 5xx errors, a service keeps crashing, or asks what to check first during an outage.
How it works
The skill bundles a tested, offline Python script that does the deterministic checks, and instructions that tell your agent how to collect inputs, run the script, interpret the findings and give you a prioritised fix list. See the demo below for real output.
Requirements
- Python 3.8+ (standard library only unless noted in the skill)
- Works with Claude Code, Codex CLI, Cursor and other SKILL.md-compatible agents
Open source: saizul/vps-devops-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
Linux only
- Software
Python 3.8+