hddtemp

Using hddtemp to monitor hard disk temperature

hddtemp is a small utility which reads the temperature of the hard drive using S.M.A.R.T as back-end (you must have smartmontools tool installed in your server). Hddtemp tool can also be daemonizable which runs on tcp port 7634 to fetch the reading from the remote server. You can even setup a cron script to shutdown the server if the configured temperature exceeds the limit.  To install the tool.

1 -> SSh the server as root.

2 -> cd /usr/src (or to your favorite directory)

wget http://mirror.veriportal.com/savannah/hddtemp/hddtemp-0.3-beta1.tar.gz

tar zxvf hddtemp-0.3-beta1.tar.gz

cd hddtemp-0.3-beta1/

make

make install

cd /etc

http://www.guzu.net/linux/hddtemp.db

(hddtemp rpms can also be found in http://packages.sw.be/hddtemp/ & http://rpm.pbone.net/ )

if you have several IDE or sata drive, just execute the following commands to read the current drives temperature.

hddtemp /dev/sd?

Output :

/dev/sda: ST3500630AS                             : 46°C

/dev/sdb: SAMSUNG HD501LJ                 : 36°C

For single drive :

hddtemp /dev/sda


External Links :

hddtemp home page :

hddtemp with nagios :

hddtemp cron script and remote readings :

Tags :  Harddisk temperature monitoring , Using hddtemp , Monitoring drive temperature using hddtemp , Installing hddtemp