Script (meant to run via cron) to monitor, log, and alert when the CPU is throttled due to overheating
In short, this is a helper script that I created to log relevant information for troubleshooting my overheating machine, which was causing CPU throttling and a less-than-desirable computing experience.
This script does the following:
This script makes a handful of assumptions (primarily because this was made for my environment):
lm_sensors
package must be installed (on Fedora: $ sudo dnf install -y lm_sensors
)I have scheduled this script to run every minute. This is the crontab entry to accomplish this (crontab -e
):
* * * * * /home/trstringer/dev/python/temp-monitor/app.py