[rrd-developers] rrd fetch AT TIME SPECIFICATION inconsistency?

Greg Bailey gbailey at lxpro.com
Mon Sep 18 21:59:36 MEST 2006


I had an application break when moving from rrdtool 1.0.X to 1.2.X, and 
after escaping the colon characters in the COMMENT sections of rrdgraph, 
I discovered another inconsistency.  I'd been using timestamps of the 
form "20060918 13:20" as a start and/or end time in rrdfetch, and while 
this used to work in rrdtool 1.0.50, it stopped working in the newer 
version.

The man page for rrdfetch gives lots of example time specifications, 
including:

       19970703 12:45 -- 12:45  July 3th, 1997 (my favorite, and its 
even got an ISO number (8601)).

But that invocation gives an error for me:

# rrdtool fetch FastEthernet0-21.rrd AVERAGE -e '19970703 12:45'
ERROR: end time: unparsable trailing text: '...12:45'

But switching the "TIME OF DAY" and the "DAY" references gives:

# rrdtool fetch FastEthernet0-21.rrd AVERAGE -e '12:45 19970703'
                     ifInOctets         ifOutOctets

 867888000: nan nan
 867974400: nan nan

So it seems the documentation for AT STYLE TIME SPECIFICATIONS could be 
updated with legal examples, and it might be worth adding a note to the 
RRDTOOL 1.2 NEWS page.

thanks,
Greg Bailey

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-developers
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-developers mailing list