DevOps Lab Part 2: Writing a Bash Health Report Script for a Linux Server
The author continues a beginner DevOps learning series by moving from setting up an Ubuntu EC2 server to building a practical tool on it. They created a short Bash script that prints a health report covering the current UTC time, root filesystem disk usage, memory and swap usage, and uptime with load averages. The script and accompanying README were committed to a GitHub repository, with the author noting that AI assistance was used for guidance while verifying outputs. Observed values on their instance included about 6.8 GB usable disk with roughly 34–35% usage and about 952 MiB RAM with no swap configured, though the author stresses these vary by machine. The author also clarifies that the report alone cannot judge server health, since that depends on workload and what normal looks like, and that the script does not check application availability, send alerts, or keep history.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in