[rrd-users] Re: Need Help with GPRINT

Watkins, K (Kobe) Kobe.Watkins at rabobank.com
Thu Jan 12 00:35:29 MET 2006


Hi Amir,

I think you're after something like the following: 

...
DEF:myspeed=db1.rrd:speed:AVERAGE
HRULE:80#FF0000:"Overloaded\n"
AREA:myspeed#B9B9FF:"CPU Load"
GPRINT:myspeed:LAST:"    Current\: %3.0lf %%"
GPRINT:myspeed:AVERAGE:"    Average\: %3.0lf %%"
GPRINT:myspeed:MIN:"    Min\: %3.0lf %%"
GPRINT:myspeed:MAX:"    Max\: %3.0lf %%"
...

Cheers,
Kobe

-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Amir Baninajar
Sent: Wednesday, 11 January 2006 11:26 PM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Need Help with GPRINT

 Hi, Im quite new to rrdtool, and would be very grateful if you could
help me.  
  
  I have created a graph that displays the CPU load from a server for a
specific period.
  
  I have no problem creating the chart itself.  But I also want to
print the max value (also min and average) of CPU load for that period
at the bottom of graph, like the examples in the gallery.  I have
looked at the sample code and I think ive followed the right  path.  But
I get the error "ERROR: bad format for GPRINT in  '.2lf'" when I try to
run the batch file (I run the command in batch  file in windows).
  
  here is my code
  ---------------------
  rrdtool graph graphs/graph1-1.png --start N-60s --end N -S 1
       --vertical-label 'percentage' -u 100 -l 0 -w 600 -h 150 
      --title "CPU load in the past minute"
DEF:myspeed=db1.rrd:speed:AVERAGE
      VDEF:maxspeed=myspeed,MAXIMUM AREA:myspeed#B9B9FF:"CPU
      load\n" HRULE:80#FF0000:"overloaded\n" GPRINT:maxspeed:"%6.2lf"
  ------------------------
  
  i looked at the other codes and it seems im the only one having this
problem.
  
  Any help would be greatly appreciated
  
		
---------------------------------
Yahoo! Photos - Showcase holiday pictures in hardcover
 Photo Books. You design it and we'll bind it!

--
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

_____________________________________________________________

This email, including any attachments, may be confidential or privileged, and is sent for the personal attention of the intended recipient.  If you have received this email in error, please delete it immediately .  The views expressed are not necessarily those of the Rabobank Group.  The Group is not liable for the effects of any virus which may be contained in this email.
_____________________________________________________________

If this e-Mail contains marketing material and you do not wish to receive such material by e-Mail in future, please reply to this e-Mail and place the words "Remove My Details - Electronic Messages" in the Subject Header.  

The Rabobank Group 
Australia: 1800 025 484
New Zealand: 0800 500 933

--
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