[rrd-users] Re: How do I print totals

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Wed Jul 25 16:47:47 MEST 2001


Owen DeLong wrote:

> Even if your math works out (which I expect it does), you forgot to
> multiply
> in the CDEF  (total=pagespersecond,$DURATION,*), and I believe you've

Indeed I did.

> made an
> unnecessary complexity in requiring an external script that knows alot
> about the graph.

This is just the front end script.  Whatever you use, you have to use
*some* way to generate the "rrdtool graph" command.  Even if you do so
by hand, you could do the math and feed the proper start and end times.

The only reason I used a script is because it shows what the logic
behind the values is.

> I believe his CDEF would do it if he got around a couple of
> hurdles.
[snip]
> CDEF:total=PREV,PREV,0,IF,rate,seconds,*,+

This will probably work, however where do you get 'seconds' from?
And how do you make sure it is correct?

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