Hi all,<br><br>I am trying to get MHWPREDICT for a data series, and I always get nan when I do &quot;rrdtool fetch&quot;.<br>I create rrd file with the following command:<br>rrdtool create temperature.rrd --step 5 \<br>DS:temp:GAUGE:10:U:U \<br>
RRA:LAST:0.5:1:864000 \<br>RRA:MIN:0.5:12:72000 \<br>RRA:MAX:0.5:12:72000 \<br>RRA:AVERAGE:0.5:12:72000 \<br>RRA:MHWPREDICT:864000:0.5:0.5:1800<br><br>I update the rrd file with the following script (it&#39;s been running for more then 24 hours):<br>
&lt;?php<br>$degree = 0;<br>$sinVal = 0;<br>while(1) {<br>        $sinVal = sin(deg2rad($degree%360)) * 10 + rand(-10,10);<br>        $cmd = &quot;rrdtool update temperature.rrd --template temp N:{$sinVal}&quot;;<br>        system($cmd);<br>
        $degree += 0.05;<br>        sleep(5);<br>}<br><br>I create a png from rrd file with the following command:<br>rrdtool graph temperature.png \<br>--end +2h \<br>--width 800 \<br>--height 300 \<br>--slope-mode \<br>
DEF:tAvg=temperature.rrd:temp:AVERAGE \<br>DEF:tLast=temperature.rrd:temp:LAST \<br>DEF:tMin=temperature.rrd:temp:MIN \<br>DEF:tMax=temperature.rrd:temp:MAX \<br>DEF:tMHW=temperature.rrd:temp:MHWPREDICT \<br>DEF:tF=temperature.rrd:temp:FAILURES \<br>
CDEF:tP=3600,-1,1800,tLast,PREDICT \<br>LINE2:tLast#FF770077:LAST \<br>LINE2:tAvg#55551177:AVG \<br>LINE2:tMin#0077FF77:MIN \<br>LINE2:tMax#FF000077:MAX \<br>LINE2:tMHW#00BB0077:MHW \<br>LINE2:tF#7700FF77:FAIL \<br>LINE2:tP#00000077:PREDICT<br>
<br>I can&#39;t see any MHWPREDICT data in the graph, so I do fetch to the rrd file with this command:<br>rrdtool fetch temperature.rrd MHWPREDICT --start -1h<br><br>and I got <br>...<br>...<br>1305067750: nan<br>1305067755: nan<br>
1305067760: nan<br>1305067765: nan<br>1305067770: nan<br><br>I am not sure if I made any mistake, please correct me if I did.<br>Thanks in advance :-)<br><br><br clear="all">This is a UTF-8 formatted mail<br>-----------------------------------------------<br>
James C.-C.Yu<br><br>