I created a rrd file using:<div><span class="Apple-tab-span" style="white-space:pre"><br></span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (! -e &quot;$rrd/mysql.rrd&quot;)<div><span class="Apple-tab-span" style="white-space:pre">        </span>{</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>print &quot;creating rrd database for mysql...\n&quot;;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>RRDs::create &quot;$rrd/mysql.rrd&quot;,</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>&quot;-s 60&quot;,</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&quot;DS:queries:COUNTER:60:0:12500000&quot;,</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&quot;DS:datain:DERIVE:60:0:12500000&quot;,</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>&quot;DS:dataout:DERIVE:60:0:12500000&quot;,</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&quot;RRA:LAST:0.5:1:9999&quot;,</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>&quot;RRA:AVERAGE:0.5:1:576&quot;,</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&quot;RRA:AVERAGE:0.5:6:672&quot;,</div><div>
<span class="Apple-tab-span" style="white-space:pre">                        </span>&quot;RRA:AVERAGE:0.5:24:732&quot;,</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&quot;RRA:AVERAGE:0.5:144:1460&quot;;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div>
</div><div><br></div><div>I am populating it using this:</div><div><br></div><div><div>for i in `mysql -e &#39;show status&#39;|grep Innodb_rows_|grep ted|cut -f 2`</div><div>do</div><div>    sum=`expr $sum + $i`</div><div>
done</div></div><div>rrdtool update mysql.rrd N:$sum:0:0</div><div><br></div><div><div>root@main [/home/dgobrien/public_html/collector]# ./net.sh</div><div>rrdtool update mysql.rrd N:271801:0:0</div><div>1081x197</div><div>
root@main [/home/dgobrien/public_html/collector]# ./net.sh</div><div>rrdtool update mysql.rrd N:271807:0:0</div></div><div><br></div><div>the counter is incrementing and the script runs thru cron once a minute</div><div>I am graphing using this:</div>
<div><br></div><div>DATE=`date +%Y%m%d`</div><div><div>rrdtool graph mysqlstats_$DATE.png --width=1000 --height=125 \</div><div>           -l 0 -X 0 --color CANVAS#000000 --color GRID#888888 --color SHADEA#FFFFFF --color SHADEB#FFFFFF --color BACK#FFFFFF --color MGRID#BBBBBB  \</div>
<div>            DEF:mysql=mysql.rrd:queries:AVERAGE \</div><div>            AREA:mysql#337722:&quot;Queries\:&quot; \</div><div>            GPRINT:mysql:MAX:&quot;  Max\\: %5.1lf %s&quot; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>    GPRINT:mysql:AVERAGE:&quot; Avg\\: %5.1lf %S&quot; \</div>
<div>            GPRINT:mysql:LAST:&quot; Current\\: %5.1lf %S&quot;</div></div><div><br></div><div>but the graph always says &quot;nan&quot; and no values show up </div><div>I tried with both DERIVE and COUNTER </div><div>
<br></div><div><a href="http://duelingelectrons.com/collector/">http://duelingelectrons.com/collector/</a></div><div><br></div><div>can anyone assist me in figuring this out?</div>