[rrd-users] RRD::update failing on first update every time?

Jo Rhett jrhett at netconsonance.com
Tue Aug 10 21:11:55 CEST 2010


Interesting is that running it quickly again and again never hits it.  But walk away and run it 20 minutes later and you'll see the problem every time.  There is some real funkiness in the timestamp detection here.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: show-rrd-problem.pl
Type: text/x-perl-script
Size: 2458 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20100810/6966269d/attachment-0001.bin 
-------------- next part --------------

> On Aug 10, 2010, at 8:18 AM, A Darren Dunham wrote:
>> Can you recreate this situation with a simple 'rrdcreate' and
>> 'rrdupdate' lines that are runnable by others?
>> 
>> On Mon, Aug 09, 2010 at 07:47:55PM -0700, Jo Rhett wrote:
>>> I have a statistical data source giving me numbers that are exactly 300 seconds apart, with multiple intervals at once.  (ie data in 5 minute windows delivered hourly, etc)
>>> 
>>> Data which is exactly 300 seconds apart should make RRD happy, but RRD is always rejecting the very first update.   Why?
>>> 
>>>      RRD filename is /rrd/vlan-0.0/queue-1.rrd
>>>       getLatestRRDTimestamp( /rrd/vlan-0.0/queue-1.rrd ):
>>>               rrd start = 1281393300, step = 300
>>> 		(steps through data to find the last defined value)
>>>       Exiting getLatestRRDTimestamp( /rrd/vlan-0.0/queue-1.rrd ) with timestamp 1281406200
>>>       insert into /rrd/vlan-0.0/queue-1.rrd values 1281406473, 3420012071625, 3420012071625
>>> ERROR while updating /rrd/vlan-0.0/queue-1.rrd: illegal attempt to update using time 1281406473 when last update time is 1281406473 (minimum one second step)
>>>       insert into /rrd/vlan-0.0/queue-1.rrd values 1281406773, 3420061076791, 3420061076791
>>>       insert into /rrd/vlan-0.0/queue-1.rrd values 1281407073, 3420108690075, 3420108690075
>>>       insert into /rrd/vlan-0.0/queue-1.rrd values 1281407373, 3420860926634, 3420860926634
>>> 
>>> Why is it failing on the first update every time?
>>> And no, I'm not doing an update at any other time, there's only one
>>> place in the code where update() is called, and it outputs the debug
>>> message you see here...
> 
> -- 
> Jo Rhett
> Net Consonance : consonant endings by net philanthropy, open source and other randomness
> 
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source and other randomness



More information about the rrd-users mailing list