Auto-Remediation Scripts & Runbook Automation
Intermediate · 45 minutes · 100 points
In this hands-on lab, you will build a foundational auto-remediation system from scratch inside a Linux environment. You will write shell scripts that detect common system issues (high CPU, disk pressure, zombie processes, failed services), log incidents, and automatically apply fixes — simulating real-world SRE runbook automation. By the end, you will have a working remediation framework that mirrors patterns used in production on-call engineering.
What you’ll learn
- Build a structured runbook directory layout and incident logging system
- Write detection scripts that identify disk pressure, zombie processes, and high load
- Implement auto-remediation functions that respond to detected incidents and log outcomes
- Create an orchestrator script that ties detection and remediation into a single automated runbook runner
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: sre, auto-remediation, runbooks, shell-scripting, incident-response, automation, bash, linux, operations
Create a free account to start this lab.