Moderator: Moderators

Monitoring HDD temperature
Installation
Merge the package hddtemp to monitor the temperature of SMART drives:
emerge -1v hddtemp
Configuration
Edit the file /etc/conf.d/hddtemp so that the variable HDDTEMP_DRIVES lists the drives to check. For example, here is my hddtemp file:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/files/hddtemp-conf.d,v 1.3 2006/07/15 01:11:28 spock Exp $
# the hddtemp executable
HDDTEMP_EXEC=/usr/sbin/hddtemp
# various options to pass to the daemon
HDDTEMP_OPTS="-l 127.0.0.1"
# a list of drives to check
#HDDTEMP_DRIVES="/dev/hda /dev/hdb"
HDDTEMP_DRIVES="/dev/sda"
Also look in /usr/share/hddtemp/hddtemp.db and, if my HDD is not listed, add the line:
"HTS541616J9SA00" 194 C "Hitachi Travelstar 5K160GB (5400RPM)"
Starting hddtemp daemon
Also need to start the hddtemp daemon:
# /etc/init.d/hddtemp start
or get the hddtemp daemon to run automatically at boot up by:
# rc-update add hddtemp default
GKrellM
It is not necessary to merge the GKrellm plugin gkrellm-hddtemp any more. To get GKrellM to display the HDD temperature, just merge hddtemp, configure it and start the daemon as described above.
Using from the command line
To use hddtemp from the command line:
# hddtemp --help
# hddtemp /dev/sda
/dev/sda: Hitachi HTS541616J9SA00: 40°C
linuxfluestererer wrote:though when I start '/usr/sbin/hddtemp /dev/sda' I get a console result with (e.g.)
/dev/sda: WDC WD5000BEVT-22A0RT0: 37°C
/etc/init.d/hddtemp restart Fitzcarraldo wrote:(BTW, can you see the image of GKrellM that I posted above? In the hotel I'm in at the moment I can only see the image of the Plasmoids.)
linuxfluesterer wrote:I see only your plasmoid in full size, but from your GKrellM there is only a very small symbol (5x5 mm).
hddtemp

# rc-update show -v | grep hddtemp
hddtemp | default
# rc-status default | grep hddtemp
hddtemp [ started ]
## rc-update show -v | grep hddtemp
hddtemp | default
# rc-status default | grep hddtemp
hddtemp [ started ]
#

#!/bin/bash
# Run the hddtemp command as on this machine the hddtemp daemon alone does not work
hddtemp# chmod +x /etc/local.d/01hddtemp.startIf "HDD Temp" is not working, you need to active hddtemp deamon becuase this script use this command to show hard disk temperature : nc localhost 7634 | cut -d'|' -f4
Return to 3D Desktops and Window Managers
Users browsing this forum: No registered users and 2 guests