From 76346f4e61c5890c7afeaa82502ec02a964b2686 Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Mon, 13 Jul 2026 10:20:53 -0400 Subject: [PATCH] html email --- scripts/disk-health-check.sh | 81 ++++++++++++++++++++++++++++++++++-- 1 file changed, 77 insertions(+), 4 deletions(-) diff --git a/scripts/disk-health-check.sh b/scripts/disk-health-check.sh index 25b26bf..9ff772e 100755 --- a/scripts/disk-health-check.sh +++ b/scripts/disk-health-check.sh @@ -1,7 +1,7 @@ #!/bin/bash # server-health-check.sh — Argento health monitoring # Checks: SMART disk health, ZFS pool status, disk space -# Outputs to stdout by default, or sends email with --email. +# Outputs plain text to stdout by default, or sends an HTML email with --email. # Use --error-only to suppress output when everything is healthy. # # Usage: @@ -37,6 +37,28 @@ done PROBLEMS="" STATUS="" +# HTML table rows for the email body, built alongside the plain-text STATUS. +# Styles are inlined on every element because most mail clients strip +#