Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: bhamail on June 02, 2007, 12:01:52 AM
-
I've run into a problem with hddtemp that is fixed when I pass a specific "type" argument to hddtemp. See http://forums.contribs.org/index.php?topic=37138.0 for more info. For example:
# hddtemp PATA:/dev/sda
works, but I don't know how to make sme7admin use this command line when it runs hddtemp.
How can I configure hddtemp (and sme7admin) to pass the extra "type" argument to hddtemp?
Another alternative is: Can I configure smartctl to log hdd temp data for use by sme7admin?
Thanks,
Dan[/code]
-
How can I configure hddtemp (and sme7admin) to pass the extra "type" argument to hddtemp?
Hack the source in /usr/bin/sme7admind, in get_sensors_hddtemp() function, you can modify the lines where /usr/sbin/hddtemp is called. Yeah, i know, this is ugly. I'll think about changing this in next version, someday..
And i don't think smartctl can simply report drive temperature, this would be too hacky.
-
That worked like a charm. I changed the file /usr/bin/sme7admind (near line number 884) as per below (commented out original line):
#my @hddtemp=`/usr/sbin/hddtemp /dev/$tag4 2> /dev/null`;
my @hddtemp=`/usr/sbin/hddtemp PATA:/dev/$tag4 2> /dev/null`;
and:
#my @hddtemp=`/usr/sbin/hddtemp /dev/$tag5 2> /dev/null`;
my @hddtemp=`/usr/sbin/hddtemp PATA:/dev/$tag5 2> /dev/null`;
After a reboot, hdd temp readings are showing up nicely in the graphs.
Thanks!
Dan