[rrd-users] Inputting older data a la the tutorial

R Dicaire kritek at gmail.com
Sat Mar 29 18:07:02 CET 2008


Hi folks. I'm following the rrdtool tutorial and trying to create an
rrd that will accept data from older points in time, ie; from ~30 days
ago til now. The rrd will accept data once a day (86400 sec), and I'm
trying to input each days value for the last 30 days.
When I do a fetch, I get nans.

The rrd creation:

rrdtool create chat.rrd --step 86400 --start 1204093125 \
DS:chat:GAUGE:86400:0:10000 RRA:AVERAGE:0.5:1:1440 \
RRA:LAST:0.5:1:1440 RRA:MAX:0.5:1:1440 RRA:MIN:0.5:1:1440

The updates (each update being in increments of 86400 sec):

rrdtool update chat.rrd 1204180409:833 1204266846:1321 1204353273:1092
1204439856:1578 1204526290:1324 1204612705:1277 1204695453:1497
1204781877:1044 1204868293:1326 1204954708:1395 1205041124:1129
1205127540:1566 1205213955:1296 1205300376:692 1205386791:1007
1205473208:635 1205559622:1145 1205646039:1643 1205732452:1429
1205818873:2204 1205905313:1394 1205991728:1484 1206078145:2198
1206164564:2756 1206250980:1829 1206337403:2270 1206423817:2467
1206510234:2405 1206596657:2405 1206683100:1842

The fetch:

rrdtool fetch chat.rrd AVERAGE --start 1204180409 --end 1206683100

                           chat

1204243200: nan
1204329600: nan
1204416000: nan
1204502400: nan
1204588800: nan
1204675200: 1.4970000000e+03
1204761600: nan
1204848000: nan
1204934400: nan
1205020800: nan
1205107200: nan
1205193600: nan
1205280000: nan
1205366400: nan
1205452800: nan
1205539200: nan
1205625600: nan
1205712000: nan
1205798400: nan
1205884800: nan
1205971200: nan
1206057600: nan
1206144000: nan
1206230400: nan
1206316800: nan
1206403200: nan
1206489600: nan
1206576000: nan
1206662400: nan
1206748800: nan

I figure I had to mess this up somewhere, but am unsure if its in the
rrd creation, or something else.

rrdtool lastupdate chat.rrd
 chat

1206683100: 1842

Any ideas on where I messed up?

Thanks

-- 
aRDy Music and Rick Dicaire present:
http://www.ardynet.com
http://www.ardynet.com:9000/ardymusic.ogg.m3u



More information about the rrd-users mailing list