[rrd-users] rrdtool graph - fill-up missing data and points in future
Simon Hobson
linux at thehobsons.co.uk
Thu Jun 19 12:11:00 CEST 2014
Bram Klein Gunnewiek <bram at shockmedia.nl> wrote:
> Is it somehow possible to fill-up the gaps until the current day and leave the rest at unknown/zero?
Yes, you can use a time condition. It's a while since I did it, but you can basically do :
if time< some value
then use <some value>
else use <some other value>
I've used this in the past to combine data from 2 RRDs where one ended and another took over at some point - it was a few years ago, but IIRC I decided it was easier to do it that way than to reconfigure the existing RRD with different consolidations.
Either use NOW or a time picked by your script, and only convert UnKn to 0 where TIME less than that. I think you want something like either :
NOW,TIME,LT,IF or ${current_time},TIME,LT,IF
I'll leave you to fill in the rest ;)
See http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html
More information about the rrd-users
mailing list