> I hadn't seen that. So I would say yes that is kind of what I want but > I don't want to have to parse an XML file or string for this so is > there any way to go through the entire file step by step and retrieve > each entry in an array or something similar? So similar to rrd_fetch > but with no consolidation function requirement or can I pass NULL for > the CF argument and have it do no analysis?
CF is a required argument for the fetch cmd AFAICT. Are you totally committed to using C? This would be a snap in perl to parse the output of xport. gabrielle > On 10/6/05, Roth, Gabrielle <[EMAIL PROTECTED]> wrote: > > Andy Canfield wrote: > > > I am needing to develop a C or C++ app that loops through > every entry > > > in an rrd file and pushes it out to a database. I am in need of > > > something that shows me what arguments I need to pass to > rrd_fetch in > > > order to accomplish this. Is there a resource online > somewhere that > > > shows me the example arguments needed that will pull > everything in the > > > .rrd? > > Are you sure rrd_fetch is what you want? The format given on > > > http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdfetc h.en.html > states that rrdfetch requires a CF (consolidation function). This means > it's going to "do something" to the raw data - e.g. average it. From > your description it sounds like you want raw values. Maybe you want > something more along the lines of rrdxport > http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdxport.en.html? > > - gabrielle - > vi vi vi...the editor of the beast -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
