FreeNAS CPU core and disk temperature check script
This is a nice simple script to display CPU core and disk temperatures on a FreeNAS server. Tested with FreeNAS 9.10.2-U1 Create a file with the following content - Mine is just called temps_check_script.sh as an example: # Write some general information echo System Temperatures - `date` uptime | awk '{ print "\nSystem Load:",10,11,12,"\n" }' # Write CPU temperatures echo "CPU Temperature:" sysctl -a | egrep -E "cpu\.[0-9]+\.temp" # Write HDD temperatures and status echo "HDD Temperature:" for i in(sysctl -n kern.disks | awk '{for (i=NF; i!=0 ; i--) if(match(i, '/da/')) printi }' ) ; do echo i: `smartctl -a…
Read more →