[rrd-users] Re: rrdgraph display
Michael Earls
Michael.Earls at cchmc.org
Tue Nov 25 02:22:55 MET 2003
I can not figure this out, can you look at what I have and tell me what
I am doing wrong,.
$opts = array( "--start", "-86400",
"-t ISP Traffic",
// "-R",
"--width=750",
"--height=200",
// "--base=1000",
"--alt-autoscale-max",
"-v Kilobytes Per Second",
"DEF:if=/f.rrd:ds0:AVERAGE",
"DEF:io=/o.rrd:ds0:AVERAGE",
"CDEF:infuse=if,8,*",
"CDEF:inoar=io,8,*",
"LINE2:infuse#00CF00:Fuse ",
"GPRINT:infuse:LAST:Current\:%8.2lf %s",
"GPRINT:infuse:AVERAGE:Average\:%8.2lf %s",
"GPRINT:infuse:MAX:Maximum\:%8.2lf %s\\n",
"LINE2:inoar#002A97:Ot",
"GPRINT:inoar:LAST:Current\:%8.2lf %s",
"GPRINT:inoar:AVERAGE:Average\:%8.2lf %s",
"GPRINT:inoar:MAX:Maximum\:%8.2lf %s\\n",
"PRINT:infuse:LAST:F Currnet\:%8.2lf %s<br>",
"PRINT:infuse:AVERAGE:F Average\:%8.2lf %s<br>",
"PRINT:infuse:MAX:F Maximum\:%8.2lf %s<br><br>",
"PRINT:inoar:LAST:O Currnet\:%8.2lf %s<br>",
"PRINT:inoar:AVERAGE:OAverage\:%8.2lf %s<br>",
"PRINT:inoar:MAX:O Maximum\:%8.2lf %s<br>",
"CDEF:inoar1=inoar:LAST * 100/inoar:MAX, %", --
This is the line I am working on
"PRINT:inoar1:LAST:O\:%8.2lf %s<br>",
);
F Currnet: 579.93 k
F Average: 2.09 M
F Maximum: 7.73 M
O Currnet: 630.00 k
O Average: 1.93 M
O Maximum: 6.23 M
O1: 630.00 k
How can I display the % of instead of the bandwidth.
Max In: 1228.7 kb/s (80.0%)
Thanks,
michael
>>> "David Gabler" <dgabler at TRUELINK.com> 11/24/03 04:51PM >>>
math would be simple stuff, e.g. current/max * 100.
check out http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/tutorial/
for tutorials on cdef and rpn math. it is all in there.
David
> -----Original Message-----
> From: rrd-users-bounce at list.ee.ethz.ch
> [mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Michael Earls
> Anyone know a good example of that, or can help me out with it.
>
> michael
--
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