[rrd-users] Re: CDEF - creating a increasing series

Lars Rune Bjørnevik lrb at sysit.com
Tue Sep 7 10:17:58 MEST 2004


Thanks a million!
It works perfect! 

Actually, this is an uptime display for a web server - not a trafficcounter... ;-)
When I query the web, I get 1=up, 0=down
A sum of this responce, divided by a sum of "ones" gives the uptime!

Again - Thx!

Regards,
Lars Rune
 

________________________________

From: ciaran deignan [mailto:ciaran.deignan at netcelo.com] 
Sent: 7. september 2004 09:29
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Re: CDEF - creating a increasing series


>CDEF:OneSum=One,PREV,+
>Trying to sum up "One" to the series "OneSum" here, but no data....?
> 
>

this one I'm currently playing with ;)

The first time the expression is encountered, PREV is undef.
But a value and UNDEF combined make... undef!
So second time around PREV is *still* UNDEF, and so it continues ;)

You need to do something like:  
    CDEF:OneSum=PREV,UN,0,PREF,IF,One,+

Personally I'm trying to calculate total traffic volume by summing a
counter, but
its difficult since you need to multiply the "counter is a rate" by the
effective step,
but the effective step is decided automatically by RRD depending on the
size of the
graph, and RRD doesn't appear to make this value available to CDEF
operations :(

Anyway, hope this helps
ciaran

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




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