Ticket #221 (closed defect: for support check mailinglist)
ruby rrdtool.fetch returns unknown format and data
| Reported by: | human | Owned by: | oetiker |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | misc | Version: | |
| Keywords: | documentation | Cc: | Kim.toms@… |
Description
From: Kim.toms@…
I'm using rrdtool from ruby. To make sparklines in my application, I have a statement like: data=RRDtool.new('/var/rrd/28.3616F1010000.rrd').fetch(['AVERAGE','-s',Time.now.to_i-600])
The RRD has a series of data in it, mostly floats between 0 and 25 or so. When I fetch data, I get the following structure out: [1242747120, 1242747780, Temperature?, 18.61693700625], [18.625], [18.625], [18.625], [18.67994234375], [18.6318305510417], [18.6801461447917], [18.6875], [18.6875], [18.6875], [NaN], [0.0?]
but sometimes I get: [1242747120, 1242747780, Temperature?, 18.61693700625], [18.625], [18.625], [18.625], [18.67994234375], [18.6318305510417], [18.6801461447917], [18.6875], [18.6875], [18.6875], [NaN], [1.23755530374873e+214?]
I can't find any documentation of the format of the output. Anyone have any idea what that number at the end is?


