[rrd-users] php4-rrdtool
Michael Earls
Michael.Earls at cchmc.org
Fri Nov 28 20:04:38 MET 2003
I am having some issues with the GPRINT function, it is adding too
many spaces, is there a way to fix this output.
Inbound Traffic Current 3.7M ( 37.28%)
^
$opts = array( "--start", "-86400",
"-t $row[deviceif] -- $row[device]",
"--width=750",
"--height=200",
"--base=1000",
"--alt-autoscale-max",
"-v Kilobytes Per Second",
"DEF:i=/$row[devicedir]/$row[deviceif].rrd:ds0:AVERAGE",
"DEF:o=/$row[devicedir]/$row[deviceif].rrd:ds1:AVERAGE",
"CDEF:in=i,8,*",
"CDEF:out=o,8,*",
"CDEF:perin=i,100,*,$row[speed],/",
"CDEF:perout=o,100,*,$row[speed],/",
"LINE2:in#00CF00:Inbound Traffic\: ",
"GPRINT:in:LAST:Current\:%8.2lf%s",
"GPRINT:perin:LAST:(%8.2lf%%)", This
line
"GPRINT:in:AVERAGE:Average\:%8.2lf%s",
"GPRINT:perin:AVERAGE:(%8.2lf%%)", This line
"GPRINT:in:MAX:Maximum\:%8.2lf%s",
"GPRINT:perin:MAX:(%8.2lf%%)\\n", This line
"LINE2:out#002A97:Outbound Traffic\:",
"GPRINT:out:LAST:Current\:%8.2lf%s",
"GPRINT:perout:LAST:(%8.2lf%%)", This line
"GPRINT:out:AVERAGE:Average\:%8.2lf%s",
"GPRINT:perout:AVERAGE:(%8.2lf%%)", This line
"GPRINT:out:MAX:Maximum\:%8.2lf%s",
"GPRINT:perout:MAX:(%8.2lf%%)\\n", This line
);
Thanks,
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