Last time I tried to use a recursive value like that, it didn't work. I think you want the other "value" to be separate previously defined, right?
DEF:count=counter.rrd:DS0:AVERAGE CDEF:value=count,UN,0,count,IF One other option is to set the XFILES very high so that you are virtually assured of having SOME reading. It is by convention set to .5 so that if half the returned readings are NaN, they are stored as NaN. By setting it to .99, it will always store some reading, not matter how small. You might check the following URL to see some examples of the RPL language. I found the exceptionally hepful: http://www.rrdtool.com/tutorial/rpntutorial.html http://www.rrdtool.com/tutorial/cdeftutorial.html Dan -----Original Message----- From: Dexin Wang [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 14, 2003 6:52 PM To: [email protected] Subject: [rrd-users] how to fill with previous value when graph I have some NaN value on some PDP. When creating the graph, I know I can do this: CDEF:value=value,UN,0,value,IF to set the value to 0 if it is NaN. Is it possible that whenever I find a NaN, I use the value of the previous non-NaN PDP? Basically can I store value in a variable and use it? Or some other way? Please help. -- 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
