[rrd-users] Re: TIME & rpn

Alex van den Bogaerdt alex at ergens.op.HET.NET
Mon Mar 25 11:43:39 MET 2002

Iain Buchanan wrote:
> I thought to print this 'dot graph' I
> might use the following CDEF:
> DEF:d2=test.rrd:d2:MAX
> CDEF:max0=d2,POP,TIME,1006000000,EQ,d2,UNKN,IF

stack becomes:

   <1 or 0>
   <1 or 0>,d2,unkn
   <either d2 or unkn>

The result is either the interval ending at 1006000000 or
the unknown value.  If no interval ends at 1006000000, you
will always get unknown.

> and then via a loop:
> CDEF:max1=d2,POP,TIME,1006000100,EQ,d2,UNKN,IF
> CDEF:max2=d2,POP,TIME,1006000200,EQ,d2,UNKN,IF
> etc...

Dito for the other times.

Now, you obviously think you have a time series that is
100 seconds (or 2,4,5,10,20,25 or 50) apart.  Even if your
RRA has this property it could very well be that consolidating
the data alters this at graph time.  See http://faq.mrtg.org/
more specifically the "intro" and "more" entries.

As a side note: if you don't need the values separated, some
magic involving TIME and % (modulo) might be appropriate.

 / 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