Wednesday, May 5, 2010

Hard Drive Temperature Monitoring on CentOS 5

To get a hard drive temperature, follow these steps:
  1. Install EPEL repository.
  2. Install the hddtemp package:
    # yum install hddtemp
    
  3. Execute hddtemp:
    # hddtemp /dev/sda
    /dev/sda: ST3750640AS: 46°C
    

Also you can get a hard drive temperature from hdd SMART table:
  1. Install the smartmontools package:
    # yum install smartmontools
    
  2. Execute smartctl:
    # smartctl -d ata -A /dev/sda
    ...
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
    194 Temperature_Celsius     0x0022   045   049   000    Old_age   Always       -       45 (0 17 0 0)
    

0 comments:

Post a Comment