[rrd-users] EPOCH timestamps

Chris Mutchler chris at leibnizcreations.com
Mon Jul 2 20:32:53 CEST 2012


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?

Thanks for your help.

On Mon, Jul 2, 2012 at 9:14 AM, Karl Fischer <rrd-users at 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
chris at leibnizcreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20120702/04868683/attachment.htm 

More information about the rrd-users mailing list