l've got a nan problem

CREATE
rrdtool create /var/rrd/cpu.rrd -s 300 /
DS:user:DERIVE:600:0:100   /
DS:system:DERIVE:600:0:100   /
DS:nice:DERIVE:600:0:100 /
RRA:AVERAGE:0.5:1:576      /
RRA:AVERAGE:0.5:6:672      /
RRA:AVERAGE:0.5:24:732     /
RRA:AVERAGE:0.5:144:1460   /

UPDATE Procedure
I'm collecting via bash scripts,

DS1=`cat /home/cpustats/cpu.log | cut -f 1 -d ','|sed 's/^[ \t]*//;s/[
\t]*$//'|cut -f1 -d '.'`
DS2=`cat /home/cpustats/cpu.log | cut -f 2 -d ','|sed 's/^[ \t]*//;s/[
\t]*$//'|cut -f1 -d '.'`
DS3=`cat /home/cpustats/cpu.log | cut -f 3 -d ','|sed 's/^[ \t]*//;s/[
\t]*$//'|cut -f1 -d '.'`
wait
DAT=`date +%s`
wait
echo $DAT,$DS1,$DS2,$DS3 >> /tmp/cputest.log
wait

rrdtool update /var/rrd/cpu.rrd -t user:system:nice N:$DS1:$DS2:$DS3


As you can see, I'm echoing the values to a test log and they are correct.
IF I do a dump >rrdtool dump cpu.rrd, the latest ds value for all streams
will be correct, but >rrdtool fetch cpu.rrd AVERAGE will show nan every
5th-6th update, and only when the computer is under load, and the graph
will have gaps.

I'm a newbie, and yes, I've used google, and have I read the manuals, what
am I doing wrong here?

Thanks in advance!
Loke


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to