Files
driveAtlas/driveAtlas.sh
Jared Vititoe 2a23a17072 Add SMART threshold warnings for drive health monitoring
New warning detection for concerning SMART values:
- Temperature: Warning at 50°C, Critical at 60°C
- Reallocated sectors: Warning at >= 1
- Pending sectors: Warning at >= 1
- UDMA CRC errors: Warning at >= 100
- Power-on hours: Warning at >= 43800 (5 years)

Health indicator now shows ⚠ when SMART passed but has warnings.
Added WARNINGS column to output showing codes like:
TEMP_WARN, TEMP_CRIT, REALLOC:5, PENDING:2, CRC:150, HOURS:50000

Thresholds are configurable via constants at top of script.

Fixes: #12

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 11:36:06 -05:00

37 KiB