[rrd-users] Replace nan with previous value

Steve Shipway s.shipway at auckland.ac.nz
Tue Feb 22 22:27:51 CET 2011


> I want to know how with a CDEF or in a configuration directly
> stored in RRD files how can I replace nan value by the last real value.

CDEF:newds=ds,UN,PREV,ds,IF

IE, if the value of 'ds' is unknown, then use its previous value, else use its original value.

This is the function done by MRTG in native mode, or with Routers2 and the 'unknasprev' option.

Steve


Steve Shipway
ITS Unix Services Design Lead
University of Auckland, New Zealand
Floor 1, 58 Symonds Street, Auckland
Phone: +64 (0)9 3737599 ext 86487
DDI: +64 (0)9 924 6487
Mobile: +64 (0)21 753 189
Email: s.shipway at auckland.ac.nz
 Please consider the environment before printing this e-mail 




More information about the rrd-users mailing list