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 ...
revin
Oct 09, 2013Aspirant
I've installed OS6 on a pro2. As I don't have fan speed and CPU temp, I've made a small script to generate my own RRD.
First, we have to generate the cpu RRD and Temp RRD. I've created on /dashboard/frontview/stats/
and now CPU RRD:
Now it's time to create a script (update_rdd). This script gets temperature from CPU Core 0, CPU Core 1, System temperature and fan speed and updates de RRDs
So, We have the data on RRD. Now It's time to draw!. This example creates 2 simple PNGs from "now - 4 hours"
The last step it's call those scripts from crontab:
I've tried to change the images from original dashboard with this ones but it was much easier to generate a simple HTML and call this PNGs 8)
First, we have to generate the cpu RRD and Temp RRD. I've created on /dashboard/frontview/stats/
rrdtool create fan.rrd --step 60 \
DS:rpm:GAUGE:120:0:5000 \
RRA:AVERAGE:0,5:1:2880 \
RRA:AVERAGE:0,5:30:384 \
RRA:AVERAGE:0,5:120:384 \
RRA:AVERAGE:0,5:1440:365 \
RRA:MAX:0,5:1:2880 \
RRA:MAX:0,5:30:384 \
RRA:MAX:0,5:120:384 \
RRA:MAX:0,5:1440:365 \
RRA:MIN:0,5:1:2880 \
RRA:MIN:0,5:30:384 \
RRA:MIN:0,5:120:384 \
and now CPU RRD:
rrdtool create temp_sys.rrd --step 60 \
DS:core0:GAUGE:120:0:100 \
DS:core1:GAUGE:120:0:100 \
DS:system:GAUGE:120:0:100 \
RRA:AVERAGE:0,5:1:2880 \
RRA:AVERAGE:0,5:30:384 \
RRA:AVERAGE:0,5:120:384 \
RRA:AVERAGE:0,5:1440:365 \
RRA:MAX:0,5:1:2880 \
RRA:MAX:0,5:30:384 \
RRA:MAX:0,5:120:384 \
RRA:MAX:0,5:1440:365 \
RRA:MIN:0,5:1:2880 \
RRA:MIN:0,5:30:384 \
RRA:MIN:0,5:120:384 \
Now it's time to create a script (update_rdd). This script gets temperature from CPU Core 0, CPU Core 1, System temperature and fan speed and updates de RRDs
#!/bin/sh
#####################################################
Coretemp1="/sys/devices/platform/coretemp.0/temp2_input"
Coretemp2="/sys/devices/platform/coretemp.0/temp3_input"
Systemp="/sys/devices/platform/it87.2576/temp2_input"
fan="/sys/devices/platform/it87.2576/fan1_input"
F=`cat $fan`
C1t=`cat $Coretemp1`
C1=`expr $C1t / 1000`
C2t=`cat $Coretemp2`
C2=`expr $C2t / 1000`
S=`cat $Systemp`
rrdtool update /frontview/dashboard/stats/temp_sys.rrd N:$C1:$C2:$S
rrdtool update /frontview/dashboard/stats/fan.rrd N:$F
##echo " CPU1=$C1 CPU2=$C2 SYS=$S "
So, We have the data on RRD. Now It's time to draw!. This example creates 2 simple PNGs from "now - 4 hours"
rrdtool graph /frontview/dashboard/stats/tempsys.png --title="Temperature" --start end-4h \
--imgformat=PNG \
--width=500 \
--base=1000 \
--height=120 \
--interlaced \
DEF:a=/frontview/dashboard/stats/temp_sys.rrd:core0:AVERAGE \
DEF:b=/frontview/dashboard/stats/temp_sys.rrd:core1:AVERAGE \
DEF:c=/frontview/dashboard/stats/temp_sys.rrd:system:AVERAGE \
LINE1:a#800000:core0 \
LINE1:b#00FF00:core1 \
LINE1:c#FF0000:system \
COMMENT:"Comments"
rrdtool graph /frontview/dashboard/stats/fan.png --title="Fan" --start end-4h \
--imgformat=PNG \
--width=500 \
--base=1000 \
--height=120 \
--interlaced \
DEF:a=/frontview/dashboard/stats/fan.rrd:rpm:AVERAGE \
LINE1:a#800000:rpm \
COMMENT:"Comments"
The last step it's call those scripts from crontab:
*/1 * * * * root /root/scripts/update_rrd
*/2 * * * * root /root/scripts/print_rrd
I've tried to change the images from original dashboard with this ones but it was much easier to generate a simple HTML and call this PNGs 8)
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!