Open JKammler opened 7 years ago
that is definitely a bug ... not quite clear where it is coming from though ... I can reproduce it ...
Thank you for investigating this issue! Do you think it can be / will be fixed in the next release?
it certainly can and will but since I have so many pressing (and paying) projects it is a question of time ... I have looked into it for about an hour but have not gotten to the bottom of the issue ...
Dear Tobi,
I am a fan of rrdtool but now I detected a behaviour which is at least a bit confusing:
Create an rrd file with one datasource, a steptime of 60s, a heartbeat of 600s and two RRA's (1 minute and 5 minutes):
rrdtool-1.6.0/bin/rrdtool create test.rrd -b 1486936800 -s 60 DS:Value:GAUGE:600:0:1 RRA:AVERAGE:0.5:1:10 RRA:AVERAGE:0.5:5:10
Insert value 1 at two specified times A. 1486947930 13/02/2017 02:05:30 B. 1486948275 13/02/2017 02:11:15
rrdtool-1.6.0/bin/rrdtool update test.rrd 1486947930:1 1486948275:1
The rrd dump shows that the intervals up to 02:11:00 are computed fine as expected:
If you insert the first value at 02:05:31 instead of 02:05:30 ALL intervals become invalid: A. 1486947931 13/02/2017 02:05:31 B. 1486948275 13/02/2017 02:11:15
rrdtool-1.6.0/bin/rrdtool update test.rrd 1486947931:1 1486948275:1
If you insert the first value a bit later instead at 02:06:00 the expected intervals up to 02:11:00 get a valid value again: A. 1486947960 13/02/2017 02:06:00 B. 1486948275 13/02/2017 02:11:15
rrdtool-1.6.0/bin/rrdtool update test.rrd 1486947960:1 1486948275:1
I think it is not a bug and maybe it has to do with invalid PDP's but the behaviour seems to be a bit undetermined. It is hard to say "Send the data some seconds later and it will work again".
Could you please be so kind and help me to explain it?
Thanks in advance!
Kind Regards
Jens Kammler