Temp Monitor & Log

Questions about applications and software
Forum rules
Before you post please read this

Temp Monitor & Log

Postby jbaerbock on Tue Jan 07, 2014 8:09 pm

So my wife's computer is randomly shutting down and it's only during gaming etc...I am hoping to find a program that will run non-obtrusively that essentialy just logs the temperature of the computer every 15 minutes or something into a basic text file. So then after her computer has a bout of reboots during gaming I can get home at night and check the log to see what happened during the day.

Anyone have any suggestions on programs they've used like this sucessfuly? She has Petra with everything up-to-date.
Level 4
Level 4
Posts: 309
Joined: Tue Jun 05, 2007 11:31 pm
Location: St. Peter, MN

Linux Mint is funded by ads and donations.

Re: Temp Monitor & Log

Postby perham on Tue Jan 07, 2014 8:26 pm

you can install lm-sensors, and set it up using sensors-detect, then just use a simple script like this to get a reading every 15 minutes:

Code: Select all
log_file=templog.txt #your log name
sleep_time=15m #or whatever you want

touch $log_file
while :
echo "---------------------------------------" >> $log_file
date >> $log_file
echo "---------------------------------------" >> $log_file
sensors >> $log_file
sleep $sleep_time
AMD Phenom II X6 1090T 3.2GHz DDR3-1600 12GB ]LinuxMint 16 Cinnamon
Intel Pentium 4 540 3.2GHz DDR-400 2GB LinuxMint 16 Mate
Intel Pentium 4 1.5 GHz 512MB Debian Jessie LXDE
User avatar
Level 3
Level 3
Posts: 118
Joined: Sat Dec 28, 2013 7:52 pm
Location: Belgium

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 23 guests