[rrd-users] Adding an element to a graph
Alex van den Bogaerdt
alex at ergens.op.het.net
Fri Mar 2 06:10:54 CET 2007
On Thu, Mar 01, 2007 at 03:44:02PM -0500, Dan Cech wrote:
> Why don't you create an RRD and keep it updated with a zero value every
> period? Then if there is no data for the graph you can just use the
> 'dummy' rrd.
works, but isn't even needed.
Any file should do (within reason), just POP the value:
DEF:whatever=[... some random rrd ...]
CDEF:zero=0,whatever,POP
LINE:zero#FF0000:zero
"whatever" is only needed to make this CDEF valid. The data isn't important,
the intervals are (this is remembered despite that POP).
Choose an appropriate RRD to get the intervals you want.
HTH
--
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/
More information about the rrd-users
mailing list