NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
glem
May 22, 2013Aspirant
Easy fix fan/temp OS6 issues on x86 legacy #no support
>> EDIT - 2014-04-12 << Before to hack your system, update first to 6.1.7. Built-in fancontrol support is there! 6.1.7 has been released: http://www.readynas.com/forum/viewtopic.php?f=1&t=76000 ...
fastfwd
Jul 01, 2013Virtuoso
ATCIS wrote: Are you (or anyone else for that matter) familiar enough with the Ultra 4 hardware to know how to modify your script (if necessary) to make it work on an Ultra 4?
I don't have an Ultra4, but I can tell you how to discover the necessary modifications on your own.
Original Iridabike script for Pro6:
#!/bin/sh
#######################################################
Coretemp="/sys/devices/platform/coretemp.0/temp2_input"
Systemp="/sys/devices/platform/w83627ehf.2576/temp2_input"
Coretemp2="/sys/devices/platform/coretemp.0/temp3_input"
Ct=`cat $Coretemp`
C=`expr $Ct / 1000`
Ct2=`cat $Coretemp2`
C2=`expr $Ct2 / 1000`
St=`cat $Systemp`
S=`expr $St / 1000`
rrdtool update /run/readynasd/stats/temperature_int_deg.rrd N:$C:$S
First, log in to your Ultra4's web GUI and see what its CPU and system temperatures are.
Next, SSH to the NAS. You're going to find the names of the temperature-reporting devices: CPU temp first, then System temp.
cd /sys/devices/platform
ls
You're looking for "coretemp.n" directories. Your Ultra4 has a single-core CPU, I believe, so there should just be one "coretemp.n" directory, probably called "coretemp.0". Change to it and see what's in there:
cd coretemp.0
ls
You'll see a number of files. The one you're interested in is "tempn_input", which reports the CPU core temperature. There's probably just one, called "temp1_input". See what it's reporting:
cat temp1_input
If there are other "tempn_input" files, cat them as well. You're looking for one that reports a number approximately 1000 times the Celsius CPU temperature that was reported in the web GUI. When you find it, write down its full path and filename; that will replace "/sys/devices/platform/coretemp.0/temp2_input" in the first line of Iridabike's script.
Next, look for the system temperature:
cd /sys/devices/platform
ls
You'll see a number of directories. One will have a name like "w83627ehf.2576", "it87.2576", etc. The name is actually the part number of the system-monitoring chip on your motherboard. Change to that directory and see what's in it:
cd it87.2576(Of course, use the directory name you found on your system; "it87.2576" is only an example.)
ls
You'll probably see a number of "tempn_input" files here. Look at each of them in turn:
cat temp1_input
cat temp2_input
cat temp3_input
One of them will report a number that's either equal to the Celsius SYS temperature that was reported in the web GUI or 1000 times that temperature. When you find it, write down its full path and filename; that will replace "/sys/devices/platform/w83627ehf.2576/temp2_input" in the second line of Iridabike's script.
Delete the third line of Iridabike's script; it isn't used. Also delete the line that begins "Ct2=" and the line that begins "C2=".
If the temperature reported in the "it87.2576" directory was equal to the SYS temperature reported in the web GUI, change the "S=`expr $St / 1000`" line in Iridabike's script to "S=`expr $St / 1`". If it was 1000 times the temperature, leave that line alone.
When you're done, your new script should look something like this:
Example modification of Iridabike's script for the Ultra4:
#!/bin/sh
#######################################################
Coretemp="/sys/devices/platform/coretemp.0/temp1_input"
Systemp="/sys/devices/platform/it87.2576/temp2_input"
Ct=`cat $Coretemp`
C=`expr $Ct / 1000`
St=`cat $Systemp`
S=`expr $St / 1`
rrdtool update /run/readynasd/stats/temperature_int_deg.rrd N:$C:$S
ATCIS wrote: Where the heck are the system logs on this crazy thing? I looked in/var/log directory and all I see is alternatives.log apt dmesg pkg.log fsck LeafP2P.log news samba apache2 btmp dmesg.0 frontview journal netatalk.log readynasd and wtmp :-? ? .... back in the day one could issue the command # tail /var/log/messages and watch for system related events, but apparently that is no longer the case on modern Linux OS's. . .
My syslog file (using RAIDiator 4) is in /var/log ; I'm not sure where OS6 puts it. Maybe in /tmp ? You can find it using the find command:
find / -name syslog
And once you find it, you can watch it:
tail -f /var/log/syslog(or wherever it is on your system).
Hit ctrl-c to stop watching it.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!