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