[rrd-users] Re: Fw: Re: PREV in 1.0.38 ?

Gonzalo Augusto Arana Tagle garana at uolsinectis.com.ar
Tue Oct 1 14:11:29 MEST 2002


Dear Stanley,

> I am writing to thank you for your letter and ask if you could perhaps
> spot the mistake or let me know what I am doing incorrectly ?

Sure (I'm not a rrdtool guru, but I'll do my best).

> tsitc> rrdtool -v
> RRDtool 1.0.39  Copyright 1997-2001 by Tobias Oetiker
> <tobi at oetiker.ch>

Great!

>         CDEF:prev_failures=failures,PREV
>         CDEF:prev_successes=successes,PREV

mmm... I think here's de problem,
Those two lines should be:
	CDEF:prev_failures=PREV(failures)
	CDEF:prev_successes=PREV(successes)

> [ERROR: RPN final stack size != 1]

That is reasonable:

	CDEF:prev_failures=failures,PREV

  The PREV operator (do not confuse it with PREV()), fetches de previous
sample of prev_failures, rather than the previous sample of failures. 
So, at the end of the RPN expression you have two values on stack
(that's the error message you get).

Hope it helps,

-- 
Gonzalo A. Arana Tagle
Lider de Proyectos - Ingenieria
UOL-Sinectis

Florida 537 Piso 6, Buenos Aires, Argentina 
+54-11-4321-9110 ext 2543
http://www.uolsinectis.com

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