[rrd-users] rrdtool graph confusion

Emily Ann Chouinard cousin17 at msu.edu
Wed Jul 2 17:31:28 CEST 2008


Sorry I meant idle appears above the 100 mark and I'm not sure why. I've 
attached my graph and hopefully someone can help me out!
And here's my entire graph command
   rrdtool.graph('cpu.png',
         '--start','now-3600',
	  '--end','now',	
	  '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', #creates a gray region when 
user jiffies is undefined
         '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#EEFFFF:Idle:STACK',
	  'LINE:1#DDDDDD::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 + '') 

Emily Chouinard writes: 

> So now that I have those small issues cleared up, I have another issue 
> that I'm trying to discern.
> I've created a graph that show the percent of CPU usage for the user, 
> system,nice and idle and since I'm ssh-ing into another linux box to do 
> all this idle processes are of the highest percent, around 98.6% but the 
> problem I'm having is the area for idle goes above zero?
> Here's the code I've written for this graph b
>  'AREA:idl#EEFFFF:Idle:STACK',
>  'LINE2:1#DDDDDD::STACK', The question I have is when you use STACK does 
> that add to the value of the area, because my Average was 98.06% but the 
> line was showing up above the 100 mark? I'm trying to get the graph, but 
> if anyone has any insight into why this is I'm open to suggestions. 
> 
> Thanks!!! 
> 
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users 
> 
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpu.png
Type: image/png
Size: 19826 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080702/770f1e56/attachment-0001.png 


More information about the rrd-users mailing list