[rrd-users] Re: CDEF and RPN confusion

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Wed Jun 20 00:40:45 MEST 2001


Gerry Seaward wrote:
> 
> 
> rrdtool graph foo.png -w 800 -h 600 --start 992628600 --end 992637000 \
> DEF:mysent=128.11.25.244.rrd:sent:AVERAGE     \
> DEF:myrec=128.11.25.244.rrd:received:AVERAGE  \
> CDEF:clean_sent=value,unknown,0,value,IF      \

You should use the desired variable named in place of "value".
Also, you need to use upper case for "unknown".

> CDEF:clean_sent=0,0,value,IF 	              \

This is a redefinition of clean_sent.  It doesn't work (or at
least: it shouldn't work).  Furthermore you have something
similar to " if (false) then this else that ".  This will always
evaluate to "that" (value in your case).

[snip]

> LINE1:mysent#FF0000 LINE2:myrec#F00000 	      

If you want to plot the modified variables, you need to specify
them here and not use the original vars.

HTH
-- 
   __________________________________________________________________
 / 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