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: d2 <empty> time-of-d2 time-of-d2,1006000000 <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. cheers, -- __________________________________________________________________ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | 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:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
