<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">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 -s e-900s<br><br>Regards,<br>Shameem<br><br><br>--- On <b>Tue, 18/5/10, Matt Chung <i><itsmemattchung@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Matt Chung <itsmemattchung@gmail.com><br>Subject: Re: [rrd-users] Consolidated Funaction<br>To: "Shameem Ahamed" <shameem.ahamed@yahoo.com><br>Cc: tobi@oetiker.ch, rrd-users@lists.oetiker.ch<br>Date: Tuesday, 18 May, 2010, 6:56 PM<br><br><div id="yiv930509634">Hey Ahamad,<br>Presumably, if I understand correctly, you would like to retrieve the maximum value of each individual datasource and represent it
graphically correct?<br><br>If so, the first thing you would need to do is to define your data definitions when using rrdtool graph:<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 respectively, you could use VDEF:<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 if you would like as well, or simply output those values on the graph. <br>
I hope this helps,<br>Matt Chung<br><br><div class="gmail_quote">On Mon, May 17, 2010 at 11:13 PM, Shameem Ahamed <span dir="ltr"><<a rel="nofollow" ymailto="mailto:shameem.ahamed@yahoo.com" target="_blank" href="/mc/compose?to=shameem.ahamed@yahoo.com">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;">Hi,<br>
<br>
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.<br>
<br>
DS:DS1:COUNTER<br>
DS:DS2:COUNTER<br>
DS:DS3:COUNTER<br>
DS:DS4:COUNTER<br>
DS:DS5:COUNTER<br>
DS:DS6:COUNTER<br>
DS:DS7:COUNTER<br>
DS:DS8:COUNTER<br>
DS:DS9:COUNTER<br>
DS:DS10:COUNTER<br>
RRA:MAX:0:1:3<br>
RRA:MAX:0:12:3<br>
RRA:MAX:0:288:3<br>
RRA:MAX:0:2016:3<br>
RRA:MAX:0:60480:3<br>
<br>
<br>
My doubt is, If I issue a fetch command<br>
<br>
fetch out.rrd MAX -r 300 -e (int(time()/300))*300 -s e-900s<br>
<br>
Which DS max result will be returned ?.<br>
<br>
How can i get the max of respective DS stored in the RRD ?.<br>
<br>
Regards,<br>
Shameem<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
rrd-users mailing list<br>
<a rel="nofollow" ymailto="mailto:rrd-users@lists.oetiker.ch" target="_blank" href="/mc/compose?to=rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a rel="nofollow" target="_blank" href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
</blockquote></div><br>
</div></blockquote></td></tr></table><br>