Chris,
$size is the bandwitdh
# get the value in octets
"DEF:inbytes=$RRD1:input:MAX",
# to get the bits on the graph, use
"CDEF:bitsin=inbytes,8,*",
# calculate percentage
"CDEF:totalpercent=bitsin,$size,/,100,*"
# print totalpercent
"GPRINT:totalpercent:MAX:%3.0lf %% "
The manual on rrdtool.eu.org has excellent examples.
hth
paul
<* speaking for himself *>
"Chris Marlow" <[EMAIL PROTECTED]> on 09-02-2001 14:59:14
To: [email protected]
cc: (bcc: Paul Pot)
Subject: [rrd-users] Percentages in RRDTool
Hello all -
Does anyone have a quick and dirty way of getting the traffic PERCENTAGES
into the graph? I'm processing the data through a perl script, so even if
it's not an option for the graphing, I could always add it in by hand with
the script. The trouble is, I don't know how to get the percentages. Any
help would be appreciated
Thanks
-Chris
-----
Christopher S. Marlow
IBM
AIX Infrastructure / 24x7 Security
Burlington, VT
Phone: 802-769-3253
Tie line: 446-3253
e-mail: [EMAIL PROTECTED]
--
Unsubscribe mailto:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Unsubscribe mailto:[EMAIL PROTECTED]
Help mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi