Ahamed,<br>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.<br><br>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".<br>
<br><div class="gmail_quote">On Tue, May 18, 2010 at 9:05 AM, Shameem Ahamed <span dir="ltr"><<a href="mailto:shameem.ahamed@yahoo.com" target="_blank">shameem.ahamed@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In simpler words, Is there a way for me just to pull out one datasource, instead of all of the DS from a RRD.<br>
<br>
Regards,<br>
Shameem<br>
<br>
<br>
<br>
--- On Tue, 18/5/10, Shameem Ahamed <<a href="mailto:shameem.ahamed@yahoo.com" target="_blank">shameem.ahamed@yahoo.com</a>> wrote:<br>
<br>
> From: Shameem Ahamed <<a href="mailto:shameem.ahamed@yahoo.com" target="_blank">shameem.ahamed@yahoo.com</a>><br>
<div>> Subject: Re: [rrd-users] Consolidated Funaction<br>
</div>> To: "Matt Chung" <<a href="mailto:itsmemattchung@gmail.com" target="_blank">itsmemattchung@gmail.com</a>><br>
<div>> Cc: <a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a>, <a href="mailto:rrd-users@lists.oetiker.ch" target="_blank">rrd-users@lists.oetiker.ch</a><br>
</div>> Date: Tuesday, 18 May, 2010, 8:53 PM<br>
<div><div></div><div>> Hi Matt,<br>
><br>
> Thanks for the reply.<br>
><br>
> But what about the fetch command ?.<br>
><br>
> What will the fetch command return , in the below case<br>
><br>
> rrdtool fetch out.rrd MAX -r 300 -e (int(time()/300))*300<br>
> -s e-900s<br>
><br>
> Regards,<br>
> Shameem<br>
><br>
> --- On Tue, 18/5/10, Matt Chung <<a href="mailto:itsmemattchung@gmail.com" target="_blank">itsmemattchung@gmail.com</a>><br>
> wrote:<br>
><br>
> From: Matt Chung <<a href="mailto:itsmemattchung@gmail.com" target="_blank">itsmemattchung@gmail.com</a>><br>
> Subject: Re: [rrd-users] Consolidated Funaction<br>
> To: "Shameem Ahamed" <<a href="mailto:shameem.ahamed@yahoo.com" target="_blank">shameem.ahamed@yahoo.com</a>><br>
> Cc: <a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a>,<br>
> <a href="mailto:rrd-users@lists.oetiker.ch" target="_blank">rrd-users@lists.oetiker.ch</a><br>
> Date: Tuesday, 18 May, 2010, 6:56 PM<br>
><br>
> Hey Ahamad,<br>
> Presumably, if I understand correctly, you would like to<br>
> retrieve the maximum value of each individual datasource and<br>
> represent it graphically correct?<br>
><br>
> If so, the first thing you would need to do is to define<br>
> your data definitions when using rrdtool graph:<br>
><br>
> DEF:datasource1=myrrd.rrd:DS1:MAXIMUM<br>
> DEF:datasource2=myrrd.rrd:DS2:MAXIMUM<br>
> DEF:datasource3=myrrd.rrd:DS3:MAXIMUM<br>
><br>
> Then, in order to extract the maximum for the datasources<br>
> respectively, you could use VDEF:<br>
><br>
> VDEF:maxdatasource1=datasource1:MAXIMUM<br>
> VDEF:maxdatasource2=datasource2:MAXIMUM<br>
> VDEF:maxdatasource2=datasource2:MAXIMUM<br>
><br>
> You can use those VDEFs as variables in other calculations<br>
> if you would like as well, or simply output those values on<br>
> the graph. <br>
><br>
> I hope this helps,<br>
> Matt Chung<br>
><br>
> On Mon, May 17, 2010 at 11:13 PM, Shameem Ahamed <<a href="mailto:shameem.ahamed@yahoo.com" target="_blank">shameem.ahamed@yahoo.com</a>><br>
> wrote:<br>
><br>
> Hi,<br>
><br>
><br>
><br>
> I have a RRD which stores multiple DS in a single rrd file.<br>
> Currently I am storing 10 DS in a single file. The create<br>
> function also defines 5 RRA with CF as MAX (to find out the<br>
> maximum of each DS ). I have attached the pseudo code<br>
> below.<br>
><br>
><br>
><br>
><br>
> DS:DS1:COUNTER<br>
><br>
> DS:DS2:COUNTER<br>
><br>
> DS:DS3:COUNTER<br>
><br>
> DS:DS4:COUNTER<br>
><br>
> DS:DS5:COUNTER<br>
><br>
> DS:DS6:COUNTER<br>
><br>
> DS:DS7:COUNTER<br>
><br>
> DS:DS8:COUNTER<br>
><br>
> DS:DS9:COUNTER<br>
><br>
> DS:DS10:COUNTER<br>
><br>
> RRA:MAX:0:1:3<br>
><br>
> RRA:MAX:0:12:3<br>
><br>
> RRA:MAX:0:288:3<br>
><br>
> RRA:MAX:0:2016:3<br>
><br>
> RRA:MAX:0:60480:3<br>
><br>
><br>
><br>
><br>
><br>
> My doubt is, If I issue a fetch command<br>
><br>
><br>
><br>
> fetch out.rrd MAX -r 300 -e (int(time()/300))*300 -s<br>
> e-900s<br>
><br>
><br>
><br>
> Which DS max result will be returned ?.<br>
><br>
><br>
><br>
> How can i get the max of respective DS stored in the RRD<br>
> ?.<br>
><br>
><br>
><br>
> Regards,<br>
><br>
> Shameem<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
><br>
> rrd-users mailing list<br>
><br>
> <a href="mailto:rrd-users@lists.oetiker.ch" target="_blank">rrd-users@lists.oetiker.ch</a><br>
><br>
> <a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
<br>
<br>
</div></div></blockquote></div><br>