[rrd-users] rrdtool graph - fill-up missing data and points in future

Bram Klein Gunnewiek bram at shockmedia.nl
Thu Jun 19 13:34:33 CEST 2014


Thanks for your quick answer, that indeed works! I overlooked it in the 
docs but its actually there.

Met vriendelijke groet / Kind regards,
Bram Klein Gunnewiek | Shock Media B.V.

Tel: +31 (0)546 - 714360
Fax: +31 (0)546 - 714361
Web: https://www.shockmedia.nl/

On 06/19/2014 12:11 PM, Simon Hobson wrote:
> 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
>
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users



More information about the rrd-users mailing list