[rrd-users] Re: y-axis: how to get upper-limit at the top

Ruttenberg, Tanya Tanya.Ruttenberg at ssa.gov
Tue Dec 6 17:29:15 MET 2005


Thank you Alex! This did what I wanted EXCEPT for one thing:

rrdtool graph - \
 --start=end-86400 \
 --lower-limit=0 \
 --title=Reliability Max 255 \
 --vertical-label=Reliability Score \
 --upper-limit=255 \
 --imgformat=PNG \
 --width=750 \
 --base=1000 \
 --height=255 \
 --rigid \
 --interlaced \
 --y-grid 51:5 \   <<<---- NOTE THIS
 DEF:a=/data1/mrtg//CA/ssa-pitts-ca-w8cf01_fa0-24_25_reliab.rrd:ds0:AVERAGE
\
 AREA:a#008080:Reliability \
 GPRINT:a:MIN:Min\: %8.2lf%s \
 GPRINT:a:AVERAGE:Avg\: %8.2lf%s \
 GPRINT:a:MAX:Max\: %8.2lf%s \
 GPRINT:a:LAST:Last\: %8.2lf%s

The one thing is that other than min and max, there are no labels:

 255 -------------------------------------- 
     |                                    |
     |                                    |
     |                                    |
     |                                    |
     |                                    |
     |                                    |
     |                                    |
     |                                    |
     |                                    |
     |                                    |
     |                                    |
 0   --------------------------------------

I know I originally said I didn't care what other labels were on the Y axis,
but looking at it now, I think that is not true. Any way to make other
labels show up?

-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Alex van den Bogaerdt
Sent: Monday, December 05, 2005 2:50 PM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Re: y-axis: how to get upper-limit at the top

On Mon, Dec 05, 2005 at 01:39:36PM -0500, Ruttenberg, Tanya wrote:

> I am using drraw with rrdtool-1.0 to create these graphs.  I am 
> graphing router "reliability" which has a max of 255, and want to make 
> the top of the y-axis "255"

>  --lower-limit=0 \
>  --upper-limit=255 \
>  --height=180 \

I don't think this (180) will ever work.  AFAIK rrdtool does not create
unequal parts on any axis.

> Any way to get what I want here?

You may get lucky with multiples of 15 and 17, and --height 255 or --height
256, but don't hold your breath.  You'll need --y-grid 15:17 or something
alike (see man rrdgraph).  --y-grid 51:5 may also be something to try.  

Using --rigid and --upper-limit is probably necessary as well.

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

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