From 2928285143abc63bfdfad0f615674bac8961173e Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Wed, 22 Apr 2026 09:47:25 -0700 Subject: [PATCH] health-check.sh: fix total disk usage label to show root filesystem instead of empty mount point --- health-check.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/health-check.sh b/health-check.sh index 8aba9a1..411ef4c 100755 --- a/health-check.sh +++ b/health-check.sh @@ -67,11 +67,11 @@ check_disk() { total_kb=$(df --block-size=1K / | awk 'NR==2 {print $2}') total_pct=$(( used_kb * 100 / total_kb )) if [ "$total_pct" -ge 90 ]; then - fail "Total disk usage at ${total_pct}% on / — critically low" + fail "Total disk usage at ${total_pct}% (root filesystem) — critically low" elif [ "$total_pct" -ge 80 ]; then - warn "Total disk usage at ${total_pct}% on /" + warn "Total disk usage at ${total_pct}% (root filesystem)" else - ok "Total disk usage at ${total_pct}% on /" + ok "Total disk usage at ${total_pct}% (root filesystem)" fi }