This small script will monitor thermals using the hottest sensor on your system (or you can pass a parameter from sysctl to use a specific sensor, e.g. dev.cpu.0.temperature
). If the temp reaches or exceeds $alarm_temp
, an email notification will be dispatched. If or when temps return to normal, you will be notified of that event as well.
/root/bin/
chmod +x /root/bin/temp_alert.php
/usr/bin/nice -n20 /root/bin/temp_alert.php
$alarm_temp
as needed[^1]: Install the Cron package from System → Packages if you don't already have it.