Skip to content

Send email alerts if things get too toasty inside your firewall

Notifications You must be signed in to change notification settings

luckman212/pfsense-temp-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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 cronjob1 (suggest every 5m): /usr/bin/nice -n20 /root/bin/temp_alert.php
  4. adjust $alarm_temp as needed

References

Footnotes

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

About

Send email alerts if things get too toasty inside your firewall

Topics

Resources

Stars

Watchers

Forks

Languages