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 href="mailto: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 href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><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>
</blockquote></div><br>