From c88428d09262882b0b18827c0df92a89847d3e3b Mon Sep 17 00:00:00 2001 From: Mateusz Suski Date: Tue, 5 May 2026 21:50:20 +0000 Subject: [PATCH] Update docs for os-healthcheck toolkit layout --- CHANGELOG.md | 8 ++++++-- README.md | 6 +++--- infra-run/scripts/bash/README.md | 12 +++++++----- .../scripts/bash/{ => os-healthcheck}/disk_check.sh | 0 .../scripts/bash/{ => os-healthcheck}/healthcheck.sh | 0 .../{ => os-healthcheck}/network_troubleshoot.sh | 0 .../bash/{ => os-healthcheck}/service_check.sh | 0 .../bash/{ => os-healthcheck}/system_report.sh | 0 8 files changed, 16 insertions(+), 10 deletions(-) rename infra-run/scripts/bash/{ => os-healthcheck}/disk_check.sh (100%) rename infra-run/scripts/bash/{ => os-healthcheck}/healthcheck.sh (100%) rename infra-run/scripts/bash/{ => os-healthcheck}/network_troubleshoot.sh (100%) rename infra-run/scripts/bash/{ => os-healthcheck}/service_check.sh (100%) rename infra-run/scripts/bash/{ => os-healthcheck}/system_report.sh (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65b8dca..f541b30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ - `infra-run` - `platform-projects` - `labs` -- Linux operations Bash toolkit: +- Linux operations Bash toolkit under `infra-run/scripts/bash/os-healthcheck/`: - healthcheck - disk usage checks - service checks @@ -18,7 +18,7 @@ - large files detection - deleted open files detection - safe cleanup suggestions -- Network troubleshooting script: +- Network troubleshooting script under `infra-run/scripts/bash/os-healthcheck/`: - interface, routing, DNS, connectivity checks - Veritas storage toolkit: - VxVM disk detection @@ -32,6 +32,10 @@ - rebalance - Runbook-style structure and step-based execution. +### Changed + +- Moved Linux operations scripts into `infra-run/scripts/bash/os-healthcheck/` to keep host health and troubleshooting checks grouped together. + ### Notes - All scripts default to dry-run where change actions are present. diff --git a/README.md b/README.md index 75d87be..b6c6a97 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,9 @@ This repository demonstrates real-world Linux infrastructure and operations expe ### Linux Operations Toolkit -[infra-run/scripts/bash/](./infra-run/scripts/bash/) +[infra-run/scripts/bash/os-healthcheck/](./infra-run/scripts/bash/os-healthcheck/) -General Linux operations scripts for host health checks, disk usage checks, service validation, and system reporting. The toolkit is written for practical operations checks on RHEL, Oracle Linux, and Ubuntu-style systems. +General Linux operations scripts for host health checks, disk usage checks, service validation, system reporting, and first-pass OS-level diagnostics. The toolkit is written for practical operations checks on RHEL, Oracle Linux, and Ubuntu-style systems. ### Disk Full Incident Toolkit @@ -24,7 +24,7 @@ Production-style disk full incident workflow covering filesystem usage, inode pr ### Network Troubleshooting -[infra-run/scripts/bash/](./infra-run/scripts/bash/) +[infra-run/scripts/bash/os-healthcheck/](./infra-run/scripts/bash/os-healthcheck/) OS-level network diagnostics for interfaces, routes, DNS resolution, gateway reachability, listening sockets, and optional remote connectivity checks. The script is designed for first-pass troubleshooting during Linux operations incidents. diff --git a/infra-run/scripts/bash/README.md b/infra-run/scripts/bash/README.md index 1c73f2a..1ba7876 100644 --- a/infra-run/scripts/bash/README.md +++ b/infra-run/scripts/bash/README.md @@ -4,15 +4,17 @@ Small, practical Bash scripts for Linux operations checks and incident triage. T ## Scripts -- `healthcheck.sh` - general host health overview. -- `disk_check.sh` - filesystem usage threshold check. -- `service_check.sh` - critical service status check. -- `system_report.sh` - writes a timestamped system report to `/tmp`. -- `network_troubleshoot.sh` - local and optional remote network diagnostics. +- `os-healthcheck/healthcheck.sh` - general host health overview. +- `os-healthcheck/disk_check.sh` - filesystem usage threshold check. +- `os-healthcheck/service_check.sh` - critical service status check. +- `os-healthcheck/system_report.sh` - writes a timestamped system report to `/tmp`. +- `os-healthcheck/network_troubleshoot.sh` - local and optional remote network diagnostics. ## Usage ```bash +cd infra-run/scripts/bash/os-healthcheck + ./healthcheck.sh ./disk_check.sh ./disk_check.sh 90 diff --git a/infra-run/scripts/bash/disk_check.sh b/infra-run/scripts/bash/os-healthcheck/disk_check.sh similarity index 100% rename from infra-run/scripts/bash/disk_check.sh rename to infra-run/scripts/bash/os-healthcheck/disk_check.sh diff --git a/infra-run/scripts/bash/healthcheck.sh b/infra-run/scripts/bash/os-healthcheck/healthcheck.sh similarity index 100% rename from infra-run/scripts/bash/healthcheck.sh rename to infra-run/scripts/bash/os-healthcheck/healthcheck.sh diff --git a/infra-run/scripts/bash/network_troubleshoot.sh b/infra-run/scripts/bash/os-healthcheck/network_troubleshoot.sh similarity index 100% rename from infra-run/scripts/bash/network_troubleshoot.sh rename to infra-run/scripts/bash/os-healthcheck/network_troubleshoot.sh diff --git a/infra-run/scripts/bash/service_check.sh b/infra-run/scripts/bash/os-healthcheck/service_check.sh similarity index 100% rename from infra-run/scripts/bash/service_check.sh rename to infra-run/scripts/bash/os-healthcheck/service_check.sh diff --git a/infra-run/scripts/bash/system_report.sh b/infra-run/scripts/bash/os-healthcheck/system_report.sh similarity index 100% rename from infra-run/scripts/bash/system_report.sh rename to infra-run/scripts/bash/os-healthcheck/system_report.sh