[rrd-users] Y axis unit problem

Petteri Matilainen pmatil at gmail.com
Tue Dec 25 22:03:44 CET 2007


It's the -Y option (see rrdgraph manpage). Try setting the Y-axis scale 
and gridlines manually, without -Y. Using both at the same time could 
result in messed up labels.


cheers,

Petteri Matilainen

Lennart Koopmann wrote:
> Hello everyone,
>
> i have a problem with the units on my Y axis. I plot the load average 
> (1,5,15min) and created this RRD:
>
> rrdtool create loadavg.rrd --start 1198589209 --step 60 
> DS:cpu1:GAUGE:600:U:U DS:cpu5:GAUGE:600:U:U DS:cpu15:GAUGE:600:U:U 
> RRA:AVERAGE:0.5:1:1440
>
> I fill in the values, generate the graph PNG and everything except the Y 
> axis looks great! It 
> should have some markers like "1, 2, 3, 4, 5" but it has "0, 200m, 400m, 
> 600m, 800m" - Why? Where do these unit values come from?
>
> I use this command to generate the graph (generated by a PHP script):
>
> /usr/bin/rrdtool graph 
> /home/lennart/Projekte/scopeport-interface-web/rrd/loadavg.png --start 
> 1198589209 --end N 
> DEF:cpu1=/home/lennart/Projekte/scopeport-interface-web/rrd/loadavg.rrd:cpu1:AVERAGE 
> AREA:cpu1#fbcf00:'CPU load average, last minute' 
> DEF:cpu5=/home/lennart/Projekte/scopeport-interface-web/rrd/loadavg.rrd:cpu5:AVERAGE 
> LINE2:cpu5#ff7800:'CPU load average, last 5 minutes' 
> DEF:cpu15=/home/lennart/Projekte/scopeport-interface-web/rrd/loadavg.rrd:cpu15:AVERAGE 
> LINE1:cpu15#ff0000:'CPU load average, last 15 minutes' 
> VRULE:1198589149#A0A0A0 VRULE:1198607158#A0A0A0:'Client startup' -t 'CPU 
> load [sundaysister]' -c FONT#c4a100 -c BACK#000000 -c CANVAS#292827 -c 
> GRID#696969 -c MGRID#877254 -c AXIS#bdbdbd -c ARROW#bdbdbd -Y
>
> Thank you!
> Lennart Koopmann
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>   



More information about the rrd-users mailing list