On 07/02/2012 11:32 AM, Chris Mutchler wrote: > Karl, > > That's what I thought too, but when I try to do just that I get the > following error from RRDs::errror: > > illegal attempt to update using time 1327662252 when last update time > is 1341253778 (minimum one second step) > > I checked my timestamps that I'm generating from the log files, they are > spaced 1 second apart and are in consecutive order. I think the issue > may be with the fact that the script itself creates the RRD file at > runtime with the second uptime timestamp noted above (1341253778) and > then the actual stats entries are all in the past from that point. > > Is there a method for overriding that or faking the timestamp used when > the RRD file is created?
You have to base the timestamp of create based on your actual timestamps rather than when you do the create itself. rick jones > > Thanks for your help. > > On Mon, Jul 2, 2012 at 9:14 AM, Karl Fischer <rrd-us...@ficos.de > <mailto:rrd-us...@ficos.de>> wrote: > > Am 02.07.2012 16:44, schrieb Chris Mutchler: > > How can I insert use an epoch timestamp that I gather from a > > log as the entry point for the data in the RRD file? > > Right now my stats string looks like this: > > > > my $stats = "N:$maxResp{$key}{'total'}:$maxResp{$key}{'wait'}"; > > simply replace the "N" with the timestamp. (N stands for "now") > > eg. > > my $time = 1341241950; > my $stats = "$time:$maxResp{$key}{'total'}:$maxResp{$key}{'wait'}"; > > > > > > -- > Chris Mutchler > ch...@leibnizcreations.com <mailto:ch...@leibnizcreations.com> > > > _______________________________________________ > rrd-users mailing list > rrd-users@lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users > _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users