[rrd-users] Consolidated Funaction
Matt Chung
itsmemattchung at gmail.com
Tue May 18 19:02:53 CEST 2010
Ahamed,
When using rrdtool graph, you have the ability to specify whatever
datasources you would like. It isn't necessary to create data definitions
for all the datasources.
In regards to FETCH, it will return all the datasources in the order the
.rrd was created. If you would like to better understand the structure of
the .rrd file, you can run "rrdtool info myrrdfile.rrd".
On Tue, May 18, 2010 at 9:05 AM, Shameem Ahamed <shameem.ahamed at yahoo.com>wrote:
> In simpler words, Is there a way for me just to pull out one datasource,
> instead of all of the DS from a RRD.
>
> Regards,
> Shameem
>
>
>
> --- On Tue, 18/5/10, Shameem Ahamed <shameem.ahamed at yahoo.com> wrote:
>
> > From: Shameem Ahamed <shameem.ahamed at yahoo.com>
> > Subject: Re: [rrd-users] Consolidated Funaction
> > To: "Matt Chung" <itsmemattchung at gmail.com>
> > Cc: tobi at oetiker.ch, rrd-users at lists.oetiker.ch
> > Date: Tuesday, 18 May, 2010, 8:53 PM
> > Hi Matt,
> >
> > Thanks for the reply.
> >
> > But what about the fetch command ?.
> >
> > What will the fetch command return , in the below case
> >
> > rrdtool fetch out.rrd MAX -r 300 -e (int(time()/300))*300
> > -s e-900s
> >
> > Regards,
> > Shameem
> >
> > --- On Tue, 18/5/10, Matt Chung <itsmemattchung at gmail.com>
> > wrote:
> >
> > From: Matt Chung <itsmemattchung at gmail.com>
> > Subject: Re: [rrd-users] Consolidated Funaction
> > To: "Shameem Ahamed" <shameem.ahamed at yahoo.com>
> > Cc: tobi at oetiker.ch,
> > rrd-users at lists.oetiker.ch
> > Date: Tuesday, 18 May, 2010, 6:56 PM
> >
> > Hey Ahamad,
> > Presumably, if I understand correctly, you would like to
> > retrieve the maximum value of each individual datasource and
> > represent it graphically correct?
> >
> > If so, the first thing you would need to do is to define
> > your data definitions when using rrdtool graph:
> >
> > DEF:datasource1=myrrd.rrd:DS1:MAXIMUM
> > DEF:datasource2=myrrd.rrd:DS2:MAXIMUM
> > DEF:datasource3=myrrd.rrd:DS3:MAXIMUM
> >
> > Then, in order to extract the maximum for the datasources
> > respectively, you could use VDEF:
> >
> > VDEF:maxdatasource1=datasource1:MAXIMUM
> > VDEF:maxdatasource2=datasource2:MAXIMUM
> > VDEF:maxdatasource2=datasource2:MAXIMUM
> >
> > You can use those VDEFs as variables in other calculations
> > if you would like as well, or simply output those values on
> > the graph.
> >
> > I hope this helps,
> > Matt Chung
> >
> > On Mon, May 17, 2010 at 11:13 PM, Shameem Ahamed <
> shameem.ahamed at yahoo.com>
> > wrote:
> >
> > Hi,
> >
> >
> >
> > I have a RRD which stores multiple DS in a single rrd file.
> > Currently I am storing 10 DS in a single file. The create
> > function also defines 5 RRA with CF as MAX (to find out the
> > maximum of each DS ). I have attached the pseudo code
> > below.
> >
> >
> >
> >
> > DS:DS1:COUNTER
> >
> > DS:DS2:COUNTER
> >
> > DS:DS3:COUNTER
> >
> > DS:DS4:COUNTER
> >
> > DS:DS5:COUNTER
> >
> > DS:DS6:COUNTER
> >
> > DS:DS7:COUNTER
> >
> > DS:DS8:COUNTER
> >
> > DS:DS9:COUNTER
> >
> > DS:DS10:COUNTER
> >
> > RRA:MAX:0:1:3
> >
> > RRA:MAX:0:12:3
> >
> > RRA:MAX:0:288:3
> >
> > RRA:MAX:0:2016:3
> >
> > RRA:MAX:0:60480:3
> >
> >
> >
> >
> >
> > My doubt is, If I issue a fetch command
> >
> >
> >
> > fetch out.rrd MAX -r 300 -e (int(time()/300))*300 -s
> > e-900s
> >
> >
> >
> > Which DS max result will be returned ?.
> >
> >
> >
> > How can i get the max of respective DS stored in the RRD
> > ?.
> >
> >
> >
> > Regards,
> >
> > Shameem
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > rrd-users mailing list
> >
> > rrd-users at lists.oetiker.ch
> >
> > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> >
> >
> >
> >
> >
> >
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20100518/a4877cb0/attachment.htm
More information about the rrd-users
mailing list