[rrd-users] Re: How do I print totals
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Wed Jul 25 17:12:35 MEST 2001
Clarence Hart wrote:
>
> Owen, I've tried the :
> "CDEF:totalP=PREV,PREV,0,IF,FromDEF,1800,*,+"
>
> and it still returns NaN. This really looks like it should work.
This isn't correct.
The PREV value is replaced by 0 when unknown (or at least that's
the intention). However, what happens if "FromDEV" is unknown ?
I doubt that "IF" will do the right thing here. The source for
1.1.x doesn't seem to check for unknowns and even worse, it seems
to handle them as "true". Better make sure and use then "UN"
statement here.
> There has to be some way to hold a PREVIOUS value and re-add it
> to the new DEF value. damn....
There is, and the provided CDEF is a good starting point. Just
debug it.
I still think you should let RRDtool do the math. You only need
to find out what amount of time is graphed.
cheers,
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
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