Skip to content

Gannet Dashboard: show SMART drive health as a readable table - #2508

Merged
sr320 merged 1 commit into
masterfrom
gannet-smart-table
Oct 1, 2026
Merged

sr320 merged 1 commit into
masterfrom
gannet-smart-table

Conversation

@sr320

@sr320 sr320 commented Oct 1, 2026

Copy link
Copy Markdown
Member

Summary

The SMART section of the Gannet Dashboard rendered every report line joined into one paragraph (/dev/sda health=PASSED temp=32C realloc=0 pending=0 /dev/sdb health=PASSED temp=?C …), which was hard to read.

It now has its own Drive health (SMART) section with:

  • a one-line summary ("✓ All 12 drives pass their SMART self-check", or a ✗ count if any fail)
  • a table: Drive · Self-check · Temperature · Reallocated sectors · Pending sectors
  • ? shown as a muted not reported; nonzero sector counts flagged with ⚠
  • a short note explaining the columns and why most drives only report pass/fail

Parsing happens client-side from the existing gannet_stats.smart lines, so no prober change is needed and it works with data already on the server-status branch. Unparseable lines fall back to a <pre> block.

Testing

  • Ran the updated script on a bare test page against the live status JSON; it rendered 12 drives (1 with full values, 11 "not reported") as expected.
  • Not previewed in the full mkdocs-material site (theme/plugins not installed locally).

Follow-up (outside this repo)

The ? values come from gannet_health.sh on gannet: sdb–sdl likely report temperature/defects under SAS-style names (e.g. "Current Drive Temperature", "grown defect list") that the script doesn't parse.

🤖 Generated with Claude Code

The SMART lines were joined into one paragraph of raw key=value text.
They now get their own "Drive health (SMART)" section: a pass/fail
summary, a table with plain-language columns ("not reported" in place
of "?", nonzero sector counts flagged), and a note explaining the
columns and the drives that only report pass/fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sr320
sr320 merged commit 5d1c47d into master Oct 1, 2026
2 checks passed
@sr320
sr320 deleted the gannet-smart-table branch October 1, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant