I've had continous SMART warnings about two drives getting too hot. After reading several pages, I compiled a terminal command that displays all of my hard drive temperatures. It's nice, but cumbersome. I have to paste it in, every time, and in order to save the data I'd have to manually record. I've never tried to write a script, but suspect there's a way to turn my command into a script that would run hourly and compile a database of historic hard drive temperatures - maybe even one that would cut out all the extraneous data and just record the current temperature without anything else. I searched and couldn't find anything, and I know HD temps are supposed to be forthcoming in 11.2, so it may be moot. I'd still love to hear some thoughts. Here's my command:
smartctl -a /dev/da0 | grep Temperature
smartctl -a /dev/da1 | grep Temperature
smartctl -a /dev/da2 | grep Temperature
smartctl -a /dev/da3 | grep Temperature
smartctl -a /dev/da4 | grep Temperature
smartctl -a /dev/da5 | grep Temperature
smartctl -a /dev/ada0 | grep Temperature
smartctl -a /dev/ada1 | grep Temperature
smartctl -a /dev/da0 | grep Temperature
smartctl -a /dev/da1 | grep Temperature
smartctl -a /dev/da2 | grep Temperature
smartctl -a /dev/da3 | grep Temperature
smartctl -a /dev/da4 | grep Temperature
smartctl -a /dev/da5 | grep Temperature
smartctl -a /dev/ada0 | grep Temperature
smartctl -a /dev/ada1 | grep Temperature