[rrd-users] Re: Using STACK in combination with LINE1

Alex van den Bogaerdt alex at ergens.op.het.net
Wed Oct 23 00:50:27 MEST 2002


On Tue, Oct 22, 2002 at 10:30:54PM +0200, Dag Wieers wrote:
> So according to this, I can STACK upon LINE1, so I could better do:
> 
>                         LINE1:ifin_min#a0ffa0
>                         STACK:ifin_diff#c0ffc0
>                         LINE1:ifin_max#a0ffa0
>                         LINE1:ifin#00a000:incoming
> 
> But this doesn't work. My 'stacked' data is not being drawn. Instead of a 
> coloured area between the min and max lines it is white.
> 
> Is there a bug in rrdtool, is the manual wrong or is it my interpretation ?

It is your interpretation.

What the manual tries to tell you is:

You can stack on top of an AREA or on top of a LINE.  The STACK will behave
as if you repeated your last command (i.e. AREA or LINE) but with an offset.

> Because I don't understand how a STACK can be "either a LINE? or an AREA".
> (Does it make sense to stack lines ??)

If you do
   DEF:ifin_min= ...
   DEF:ifin_max= ...
   CDEF:ifin_diff=ifin_max,ifin_min,-
   LINE1:ifin_min#00CC00
   STACK:ifin_diff#FF0000

then you're really doing nothing more than graphing ifin_min and ifin_max.
In *this* example, it is completely useless of course.  It is nothing more
than:

   DEF:ifin_min= ...
   DEF:ifin_max= ...
   LINE1:ifin_min#00CC00
   LINE1:ifin_max#FF0000

I'm sure someone can come up with an example that's less useless.

The developers release knows how to do what you want; it can stack an AREA
on top of a line.  Please try it out if you dare and do give feedback.

cheers,
Alex

--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list