From 47bc0a5a7091bcf716ba1518b3c0ea18a64dc462 Mon Sep 17 00:00:00 2001 From: batsumaru <> Date: Wed, 1 Jul 2026 17:12:46 +0900 Subject: Say "never scrubbed" instead of "unknown" for pools with no scan history Confirmed against the real box: a pool that's never had a scrub or resilver has no `scan:` line in `zpool status` output at all - it's not omitted due to a parsing bug, there's just nothing to report yet. "unknown" wrongly implied a parse failure. Co-Authored-By: Claude Sonnet 5 --- statuspage/checks/hw.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'statuspage/checks/hw.sh') diff --git a/statuspage/checks/hw.sh b/statuspage/checks/hw.sh index 54c4718..384ab4a 100755 --- a/statuspage/checks/hw.sh +++ b/statuspage/checks/hw.sh @@ -55,5 +55,5 @@ for pool in $(zpool list -H -o name 2>/dev/null); do "") ERR_STATUS="warn" ;; *) ERR_STATUS="down" ;; esac - json_line "hardware" "zpool $pool scrub" "${SCAN:-unknown}" "$ERR_STATUS" + json_line "hardware" "zpool $pool scrub" "${SCAN:-never scrubbed}" "$ERR_STATUS" done -- cgit v1.3