[rrd-users] rrd graph issues

Emily Ann Chouinard cousin17 at msu.edu
Thu Jul 3 16:20:19 CEST 2008


Hi all, I've been working with my graph for awhile to try to figure out why 
I get values greater than 100% for my graph, which isn't possible. Here is 
my graph definition
rrdtool.graph('cpu.png',
         '--start','now-3600',
	  '--end','now',
	  '--upper-limit','100',
	  '--lower-limit', '0',	
	  'DEF:uj=cpu.rrd:user:AVERAGE', #define number of jiffies
	  'DEF:nj=cpu.rrd:nice:AVERAGE',#which are the number of ticks
         'DEF:sj=cpu.rrd:sys:AVERAGE',
         'DEF:ij=cpu.rrd:idle:AVERAGE',
	  'CDEF:tj=uj,nj,+,sj,+,ij,+',
	  'CDEF:bo=uj,UN,0,uj,IF,0,GT,UNKN,INF,IF',
         'AREA:bo#DDDDDD:',
         'CDEF:usr=100,uj,*,tj,/',
         'CDEF:nic=100,nj,*,tj,/',
	  'CDEF:sys=100,sj,*,tj,/',
         'CDEF:idl=100,ij,*,tj,/',
         'CDEF:tot=100,tj,*,tj,/',
	  'AREA:nic#0040A2:Nice',
	  'VDEF:maxN=nic,MAXIMUM',
         'VDEF:minN=nic,MINIMUM',
         'VDEF:avgN=nic,AVERAGE',
         'GPRINT:maxN:  Max %6.2lf%%',
         'GPRINT:minN:  Min %6.2lf%%',
         'GPRINT:avgN:  Avg %6.2lf%%\l',
	  'AREA:sys#90C5CC:System:STACK',
         'LINE2:1#70A5AC::STACK',
	  'VDEF:maxS=sys,MAXIMUM',
         'VDEF:minS=sys,MINIMUM',
         'VDEF:avgS=sys,AVERAGE',
         'GPRINT:maxS:Max %6.2lf%%',
         'GPRINT:minS:  Min %6.2lf%%',
         'GPRINT:avgS:  Avg %6.2lf%%\l',
         'AREA:usr#B0E5EC:User:STACK',
         'LINE2:1#90C5CC::STACK',
         'VDEF:maxU=usr,MAXIMUM',
         'VDEF:minU=usr,MINIMUM',
         'VDEF:avgU=usr,AVERAGE',
         'GPRINT:maxU:  Max %6.2lf%%',
         'GPRINT:minU:  Min %6.2lf%%',
         'GPRINT:avgU:  Avg %6.2lf%%\l',
	  'AREA:idl#0000ff:Idle:STACK',
	  'VDEF:maxI=idl,MAXIMUM',
 	  'VDEF:minI=idl,MINIMUM',
 	  'VDEF:avgI=idl,AVERAGE',
 	  'GPRINT:maxI:  Max %6.2lf%%',
 	  'GPRINT:minI:  Min %6.2lf%%',
 	  'GPRINT:avgI:  Avg %6.2lf%%\l',
	  '--vertical-label','Ticks',
	  '--title','Hourly CPU Usage',
	  'COMMENT:' + cur_date + '')
As you can tell I have 4 data sources being graphed, and I contvert these 
DERIVE DST into percentages so the maximum percentage is 100%, and I'm 
getting a graph that graph above 100%. Also I've put a limit on the graph to 
try to cope with this issue, Max 100 Min 0 and it starts off good but once 
it updates then the limit doesn't  apply anymore. I'm not sure what's going 
on here and why, when the values aren't greated than 100 (they're about 98 
or 99). Does it have anything to do with the STACK command? Please any help 
would be appreciated! 



-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpu.png
Type: image/png
Size: 18581 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080703/deebeca8/attachment.png 


More information about the rrd-users mailing list