[rrd-users] Re: Help for GPRINT

Alex van den Bogaerdt alex at ergens.op.het.net
Tue Oct 10 10:41:39 MEST 2006


On Tue, Oct 10, 2006 at 08:52:00AM +0200, meteo.quimper at free.fr wrote:

> I use rrdtool with mrtg on a windows server, no problems for creating 
> rrdtool graphs, but i have a little problem with the GPRINT comand:

Nope, you have a problem with command.com or cmd.exe :)


> rrdtool graph test.png --imgformat=PNG --start=-86400 --end=-300 --title="Localhost - CPU Utilization - CPU0" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="percent" --slope-mode DEF:a="cpu.rrd":ds1:AVERAGE AREA:a#FF0000:"CPU Utilization" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf" 

Try single quotes, and/or try double percent sign.  You may need to experiment
a bit:

GPRINT:a:LAST:'Current:%8.0lf'
GPRINT:a:LAST:'Current\:%8.0lf'
GPRINT:a:LAST:'Current\:\%8.0lf'
GPRINT:a:LAST:'Current\:%%8.0lf'

that sort of stuff.  The problem is not RRDtool.  RRDtool never gets to
see that '%'.  Your OS changes "%8" into the 8th parameter for your script.

HTH
-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list