https://github.com/trstringer/linux-core-temperature-monitor
:fire: Script (meant to run via cron) to monitor, log, and alert when the CPU is throttled due to overheating
https://github.com/trstringer/linux-core-temperature-monitor
Last synced: about 1 year ago
JSON representation
:fire: Script (meant to run via cron) to monitor, log, and alert when the CPU is throttled due to overheating
- Host: GitHub
- URL: https://github.com/trstringer/linux-core-temperature-monitor
- Owner: trstringer
- Created: 2017-10-05T20:47:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-05T20:47:47.000Z (over 8 years ago)
- Last Synced: 2025-03-31T13:27:46.397Z (about 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 12
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linux Temperature and Load Monitoring
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:
- Retrieve and log CPU core temperatures
- Retrieve and log computer fan speed
- Retrieve and log system load for the past minute
- Retrieve and log any systemd journal entries indicating a throttled CPU condition
- Notify (GNOME desktop environment) if a throttled CPU condition has been met
This script makes a handful of assumptions (primarily because this was made for my environment):
- Using systemd (for throttle log entries)
- Using GNOME (for desktop notifications)
- The `lm_sensors` package must be installed (on Fedora: `$ sudo dnf install -y lm_sensors`)
### Scheduling the script
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
```