Add disk temperature monitoring, trend tracking and email alarms

Fan speed now takes the loudest request from CPU/GPU and from each drive
interpolated against its own reported temperature limit, so bay position
and drive technology stop mattering. Reported limits are clamped by class
because WD Reds report the SCT critical limit (85) rather than an
operating maximum.

Adds a rolling temperature history and four alarms (absolute, rising
trend, SMART health, disk count), rate limited per key with a one hour
cooldown, delivered by mail through the host relay.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Zeb Hering
2026-08-28 18:36:07 -07:00
commit 562d8e8d46
5 changed files with 920 additions and 0 deletions

8
fan_speed.service Normal file
View File

@@ -0,0 +1,8 @@
[Unit]
Description=Fan_Speed service
[Service]
ExecStart=/bin/bash -c /root/fan_speed/fan_speed.sh
[Install]
WantedBy=multi-user.target