Ticket #221 (closed defect: for support check mailinglist)

Opened 3 years ago

Last modified 14 months ago

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?

Change History

comment:1 Changed 14 months ago by oetiker

  • Cc Kim.toms@… added

comment:2 Changed 14 months ago by oetiker

  • Status changed from new to closed
  • Resolution set to for support check mailinglist

hmm that seems odd ... please test with the latest rrdtool version and the included ruby bindings ...

Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.