luckman212 / pfsense-temp-alert

Send email alerts if things get too toasty inside your firewall
4 stars 0 forks source link
alerts monitoring pfsense php

icon

pfsense-temp-alert

Abstract

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.

Setup

  1. scp the script to /root/bin/
  2. chmod +x /root/bin/temp_alert.php
  3. add cronjob[^1] (suggest every 5m): /usr/bin/nice -n20 /root/bin/temp_alert.php
  4. adjust $alarm_temp as needed

References

[^1]: Install the Cron package from System → Packages if you don't already have it.