HANDS-ON TASK · 1 OF 1

Capture an incident health snapshot

Project: Capture an incident health snapshot

You're on call as an SRE at esc bash. An alert just fired: the web server feels slow, and the on-call channel needs a clear picture of the machine before anyone starts changing things. Your job is to capture a health snapshot into a single file the team can read at a glance.

Set up the project

Run this first. It prepares the machine for the task:

bash
curl -fsSL https://raw.githubusercontent.com/Esc-Bash/project-init-scripts/main/linux/project-2/init.sh | bash

This adds some log data under /var/log/escbash-app/ so the machine has something realistic to report on.

What to capture

Create /root/health-report.txt and put all of the following into it, in any order. Each one is a short section of real output from this machine:

  1. The machine's uptime and load average.
  2. A memory summary (total, used, and available).
  3. A snapshot of the running processes.
  4. Disk usage for each filesystem.
  5. The largest folders under /var.
  6. Which ports are currently listening for connections.

Use the monitoring, disk, and networking commands from the earlier topics. Send each command's output into the report file, appending as you go so nothing gets overwritten.

When the checks pass, press Submit.

Start the lab on the right to run checks.

Pass the checks to continue
Spin up a fresh environment and practice live.
linux-devops-basic · fresh machine · ready in under a minute