Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 157299 - smartd reports farenheit temperatures as celcius
smartd reports farenheit temperatures as celcius
Product: Fedora
Classification: Fedora
Component: smartmontools (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Depends On:
  Show dependency treegraph
Reported: 2005-05-10 08:24 EDT by Andy
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-03 14:34:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Filtered 'messages' to show problem still exists (796 bytes, text/plain)
2005-11-03 12:55 EST, Andy
no flags Details
smartctl -a /dev/hda (5.61 KB, text/plain)
2005-11-03 12:56 EST, Andy
no flags Details

  None (edit)
Description Andy 2005-05-10 08:24:57 EDT
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]

How reproducible:

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[3756]: 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[3756]: Device: /dev/hda, SMART Usage Attribute: 194 Temperature_Farenheit changed from 106 to 105

Additional info:

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.
Comment 1 Tomas Mraz 2005-11-03 11:55:24 EST
Could you please attach smartctl -a /dev/hda output here?
Comment 2 Andy 2005-11-03 12:55:13 EST
Created attachment 120697 [details]
Filtered 'messages' to show problem still exists

This is a filtered version of the messages logfile.  I included this for
Comment 3 Andy 2005-11-03 12:56:54 EST
Created attachment 120698 [details]
smartctl -a /dev/hda
Comment 4 Tomas Mraz 2005-11-03 14:34:20 EST
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
See also:
Comment 5 Andy 2005-11-03 14:38:37 EST
Well I noticed that but as mentioned the problem is that in /var/log/messages
this temperature is considered farenheit instead of celcius
Comment 6 Tomas Mraz 2005-11-03 14:59:00 EST
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.

Note You need to log in before you can comment on or make changes to this bug.