The Incident Response Playbook
The Complete Troubleshooting Framework
When an alert fires, senior engineers follow a systematic 10-step approach rather than panicking. This module walks through a complete production incident from the initial Zabbix alert to the final post-mortem. The framework is:
1. df -h β Identify the full partition
2. du -sh | sort -rh β Find the space hog
3. ps aux | grep β Hunt the rogue process
4. kill -9 β Terminate the process
5. free -h β Check memory/swap health
6. top β Verify system is stabilizing
7. systemctl restart β Bring crashed services back
8. journalctl -u β Verify clean startup
9. chmod +x β Fix deploy script permissions
10. chown -R β Fix file ownership issues
π Diagnostics
Identify what's wrong.
df -hβ Disk usage per partitiondu -sh /*β Find largest directoriesps aux | grepβ Find processesfree -hβ Memory and swaptopβ Real-time system overview
β‘ Actions
Fix the problem.
kill -9 PIDβ Force kill processsystemctl restartβ Restart servicechmod +xβ Fix permissionschown user:groupβ Fix ownership
β Verify
Confirm it's fixed.
journalctl -uβ Service logstopβ CPU/MEM stabilizingdf -hβ Space recoveredls -laβ Verify permissions
Kill Signal Cheat Sheet
kill PIDβ Send SIGTERM (15). Process can clean up gracefully.- Wait 5 seconds. If still running...
kill -9 PIDβ Send SIGKILL (9). Kernel terminates immediately.- Verify:
ps aux | grep PIDβ Confirm it's gone.
Permission vs Ownership β Know the Difference
chmod changes what actions are allowed (read, write, execute).
chown changes who the file belongs to (user and group).
Common mistake: a file has 755 permissions but is owned by root. A non-root user can read/execute but NOT write β even though write is enabled for the owner. Fix: chown devops:devops file then chmod 755 file.




