Red Hat Bugzilla – Bug 157299
smartd reports farenheit temperatures as celcius
Last modified: 2007-11-30 17:11:05 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
Description of problem:
Suspect reported temperatures are in Farenheit instead of Celcius because hard drive specs for my drive specify a maximum temperature of 55°C
/var/log/messages reports temperatures going to 107°C
If I take 107 to be Farenheit then temperature is 41°C which is more believable.
Version-Release number of selected component (if applicable):
smartd version 5.33 [i386-redhat-linux-gnu]
Steps to Reproduce:
1. on Fedora Core 3 Heidelberg, install the smartd rpm (clean install, no old config files)
2. start the deamon and configure a disk to be monitored by smartd
3. look at /var/log/messages
Actual Results: Temperatures reported in /var/log/messages are shown in degrees celcius
May 6 16:47:52 giga smartd: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Celsius changed from 106 to 105
Expected Results: Either the values should have been converted to Celcius, or the line should have said
May 6 16:47:52 giga smartd: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Farenheit changed from 106 to 105
Like said above, the readings I get are impossible if they are in Celcius. Either the readings are false, or the readings are correct but should be converted to Celcius.
Could you please attach smartctl -a /dev/hda output here?
Created attachment 120697 [details]
Filtered 'messages' to show problem still exists
This is a filtered version of the messages logfile. I included this for
Created attachment 120698 [details]
smartctl -a /dev/hda
The actual temperature in Celsius is stored in the Raw value. The value
displayed by smartd is actually a normalized value (use -r for printing the raw
Well I noticed that but as mentioned the problem is that in /var/log/messages
this temperature is considered farenheit instead of celcius
The normalized value can be just anything - for example on some disks (Maxtors)
here it is reported always as 253. The real value of the attribute is in the raw
value field and it is really Temperature_Celsius.