[rrd-users] Re: How to or examples to pull all entries?
gabrielle.roth at xo.com
Fri Oct 7 19:23:38 MEST 2005
> 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.
> On 10/6/05, Roth, Gabrielle <gabrielle.roth at xo.com> 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
> states that rrdfetch requires a CF (consolidation function). This
> 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
> - gabrielle -
> vi vi vi...the editor of the beast
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
More information about the rrd-users