[rrd-users] Re: Percentages in RRDTool
Paul Pot
paul_pot at nl.sonymusic.com
Fri Feb 9 15:18:35 MET 2001
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" <marlowc at us.ibm.com> on 09-02-2001 14:59:14
To: rrd-users at list.ee.ethz.ch
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: marlowc at us.ibm.com
--
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