[rrd-users] SV: Re: I need help to calculate % of max bandwidth !!!

Flemming Christensen fc at dsidata.dk
Thu Apr 18 09:47:03 MEST 2002


Thanks ... it works fine for max, min and average but how about LAST ?

I only want the % of bandwidth for the very last messurement !

any suggestions ?

Flemming


-----Oprindelig meddelelse-----
Fra: Iain Buchanan [mailto:iain at pcorp.com.au]
Sendt: 17. april 2002 05:46
Til: rrd-users
Emne: [rrd-users] Re: I need help to calculate % of max bandwidth !!!



You could do it this way.  If anyone has a better way, please say so!

1. Draw the running % 'blind' so it doesn't show a line on the graph
2. GPRINT this value

You will of course have to choose from the min, max or average percent
values.  eg (ave):

(this is your data source)
DEF:trend=data.rrd:bitsin:AVE

(this is the percent, assuming your max bandwidth is a 56k modem)
CDEF:pctrend=57600,trend,/,100,*

(note no colour is specified so the drawing is done 'blind')
LINE1:pctrend

(now print the average of the percent of maximum bandwidth!)
GPRINT:pctrend:AVE:%.2f

----- Original Message -----
From: "Flemming Christensen" <fc at dsidata.dk>
To: "Rrd-Users (E-mail)" <rrd-users at list.ee.ethz.ch>
Sent: Thursday, April 11, 2002 6:53 PM
Subject: [rrd-users] I need help to calculate % of max bandwidth !!!


> I'm using GPRINT to show max, min, average and last data.
>
> How can I calculate a percentage of total bandwidth like MRTG do ?
>
>
>
>
>
> Med venlig hilsen
>
> Flemming Christensen
>
> Chefkonsulent
>
> DSI DATA A/S
> Kokkedal Industripark 2 | 2980 Kokkedal
> Tel. +45 4918 4918 | Fax +45 4918 4944
>      www.dsidata.dk | fc at dsidata.dk




--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list