Look in the documentation for 'rrdtool first' and 'rrdtool lastupdate'. http://oss.oetiker.ch/rrdtool/doc/rrdfirst.en.html This returns the first (oldest) entry for a given RRA. http://oss.oetiker.ch/rrdtool/doc/rrdlastupdate.en.html This returns the last entry time and values Note that 'rrdtool last' by contrast returns the time of the last update.
Steve Steve Shipway University of Auckland ITS UNIX Systems Design Lead [email protected]<mailto:[email protected]> Ph: +64 9 373 7599 ext 86487 ________________________________ From: [email protected] [[email protected]] on behalf of Steven Sim [[email protected]] Sent: Tuesday, 1 July 2014 3:08 p.m. To: [email protected] Subject: [rrd-users] Fetch the time of the first entry Hello; I'm being asked to write a scrip to append data to an rrd and plot daily, weekly and monthly graphs of said data. I already have a script to create an rrd and write data to it. To append, I'll simply bypass the 'creation' logic of my script and use a user specified rrd file. But to plot daily, weekly and monthly, I need to know the start time of the first entry in the rrd file. Is there a way to determine the time of the first entry of an rrd file? Deepest Regards Steven Sim
_______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
