This is a discussion on [rrd-users] Graph Question - average of maximum's within the RRD Users forums, part of the Networking and Network Related category; --===============2106038178== Content-Type: multipart/alternative; boundary="=-cEbthXFwaAj4DxE3Dg3+" --=-cEbthXFwaAj4DxE3Dg3+ Content-Type: text/plain Content-Transfer-Encoding: 7bit I am ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============2106038178==
Content-Type: multipart/alternative; boundary="=-cEbthXFwaAj4DxE3Dg3+" --=-cEbthXFwaAj4DxE3Dg3+ Content-Type: text/plain Content-Transfer-Encoding: 7bit I am a new user and have the following graph question: I need to obtain the average of the maximum's that have been collected over a period of time. I have 6 RRD's that have been created with the following command, 1 for each system... rrdtool create statistics.rrd --start 1203393659 --step 60 \ DS:smh_da:GAUGE:60:1:U \ RRA:AVERAGE:0.5:1:302400 \ RRA:MIN:0.5:1440:60 \ RRA:MAX:0.5:1440:60 ....how is it possible to generate a single number that is the average of all the maximum's that has occurred over a period of time. I have been using the following command... rrdtool graph delivery.png --title "Total Delivery Rate (Test)" \ --width 1000 \ --height 250 \ --step 60 \ --start -1d \ --units-exponent 0 \ --interlace \ --vertical-label="Message Delivery Attempts" \ DEF:smvs41=$base/smvs41/statistics.rrd:smh_da:AVERAGE \ DEF:smvs61=$base/smvs61/statistics.rrd:smh_da:AVERAGE \ DEF:smvs81=$base/smvs81/statistics.rrd:smh_da:AVERAGE \ DEF:smvs51=$base/smvs51/statistics.rrd:smh_da:AVERAGE \ DEF:smvs71=$base/smvs71/statistics.rrd:smh_da:AVERAGE \ DEF:smvs91=$base/smvs91/statistics.rrd:smh_da:AVERAGE \ DEF:smvs41m=$base/smvs41/statistics.rrd:smh_da:MAX \ DEF:smvs61m=$base/smvs61/statistics.rrd:smh_da:MAX \ DEF:smvs81m=$base/smvs81/statistics.rrd:smh_da:MAX \ DEF:smvs51m=$base/smvs51/statistics.rrd:smh_da:MAX \ DEF:smvs71m=$base/smvs71/statistics.rrd:smh_da:MAX \ DEF:smvs91m=$base/smvs91/statistics.rrd:smh_da:MAX \ CDEF:total=smvs41,smvs61,+,smvs81,+,smvs51,+,smvs7 1,+,smvs91,+ \ CDEF:totalm=smvs41m,smvs61m,+,smvs81m,+,smvs51m,+, smvs71m,+,smvs91m,+ \ VDEF:smh_max=totalm,MAXIMUM \ VDEF:smh_min=totalm,MINIMUM \ VDEF:smh_ave=totalm,AVERAGE \ COMMENT:" " \ COMMENT:"Minimum Maximum Average\n" \ GPRINT:smh_min:" %5.0lf" \ GPRINT:smh_max:" %5.0lf" \ GPRINT:smh_ave:" %5.0lf" \ COMMENT:" \n" \ HRULE:13100#0000FF:"Site limit" \ LINE1:total#FF0000:"Total MDA" ....the graph is plotted correctly with 'total' however, the value 'smh_ave' does not represent the average of the maximum. Any help to point me in the right direction? This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. --=-cEbthXFwaAj4DxE3Dg3+ Content-Type: text/html; charset=utf-8 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> <META NAME="GENERATOR" CONTENT="GtkHTML/3.14.3"> </HEAD> <BODY> I am a new user and have the following graph question:<BR> <BR> I need to obtain the average of the maximum's that have been collected over a period of time.<BR> <BR> I have 6 RRD's that have been created with the following command, 1 for each system...<BR> <BR> <PRE> rrdtool create statistics.rrd --start 1203393659 --step 60 \ &n bsp; &nbs p; DS:smh_da:GAUGE:60:1:U &nbs p; \ &n bsp; &nbs p; RRA:AVERAGE:0.5:1:302400 \ &n bsp; &nbs p; RRA:MIN:0.5:1440:60 & nbsp; \ &n bsp; &nbs p; RRA:MAX:0.5:1440:60 & nbsp; </PRE> <BR> ....how is it possible to generate a single number that is the average of all the maximum's that has occurred over<BR> a period of time. I have been using the following command...<BR> <BR> <PRE> rrdtool graph delivery.png --title "Total Delivery Rate (Test)" \ &n bsp; &nbs p; --width 1000 &nbs p; \ &n bsp; &nbs p; --height 250   ; \ &n bsp; &nbs p; --step 60 &n bsp; \ &n bsp; &nbs p; --start -1d \ &n bsp; &nbs p; --units-exponent 0   ; \ &n bsp; &nbs p; --interlace   ; & nbsp; &nb sp; \ &n bsp; &nbs p; --vertical-label="Message Delivery Attempts" \ &n bsp; &nbs p; DEF:smvs41=$base/smvs41/statistics.rrd:smh_da:AVERAGE \ &n bsp; &nbs p; DEF:smvs61=$base/smvs61/statistics.rrd:smh_da:AVERAGE \ &n bsp; &nbs p; DEF:smvs81=$base/smvs81/statistics.rrd:smh_da:AVERAGE \ &n bsp; &nbs p; DEF:smvs51=$base/smvs51/statistics.rrd:smh_da:AVERAGE \ &n bsp; &nbs p; DEF:smvs71=$base/smvs71/statistics.rrd:smh_da:AVERAGE \ &n bsp; &nbs p; DEF:smvs91=$base/smvs91/statistics.rrd:smh_da:AVERAGE \ &n bsp; &nbs p; DEF:smvs41m=$base/smvs41/statistics.rrd:smh_da:MAX \ &n bsp; &nbs p; DEF:smvs61m=$base/smvs61/statistics.rrd:smh_da:MAX \ &n bsp; &nbs p; DEF:smvs81m=$base/smvs81/statistics.rrd:smh_da:MAX \ &n bsp; &nbs p; DEF:smvs51m=$base/smvs51/statistics.rrd:smh_da:MAX \ &n bsp; &nbs p; DEF:smvs71m=$base/smvs71/statistics.rrd:smh_da:MAX \ &n bsp; &nbs p; DEF:smvs91m=$base/smvs91/statistics.rrd:smh_da:MAX \ &n bsp; &nbs p; CDEF:total=smvs41,smvs61,+,smvs81,+,smvs51,+,smvs7 1,+,smvs91,+ \ &n bsp; &nbs p; CDEF:totalm=smvs41m,smvs61m,+,smvs81m,+,smvs51m,+, smvs71m,+,smvs91m,+ \ &n bsp; &nbs p; VDEF:smh_max=totalm,MAXIMUM \ &n bsp; &nbs p; VDEF:smh_min=totalm,MINIMUM \ &n bsp; &nbs p; VDEF:smh_ave=totalm,AVERAGE \ &n bsp; &nbs p; COMMENT:" &n bsp; &nbs p; " \ &n bsp; &nbs p; COMMENT:"Minimum Maximum Average\n" \ &n bsp; &nbs p; GPRINT:smh_min:" %5.0lf" \ &n bsp; &nbs p; GPRINT:smh_max:" %5.0lf" \ &n bsp; &nbs p; GPRINT:smh_ave:" %5.0lf" \ &n bsp; &nbs p; COMMENT:" &n bsp; \n" \ &n bsp; &nbs p; HRULE:13100#0000FF:"Site limit" \ &n bsp; &nbs p; LINE1:total#FF0000:"Total MDA" </PRE> <BR> ....the graph is plotted correctly with 'total' however, the value 'smh_ave' does not represent the average of the maximum.<BR> <BR> Any help to point me in the right direction?<BR> <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%"> <TR> <TD> <BR> </TD> </TR> </TABLE> <br clear=all> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. </BODY> </HTML> --=-cEbthXFwaAj4DxE3Dg3+-- --===============2106038178== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users --===============2106038178==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|