[rrd-users] perl and lastupdate

Steve Shipway s.shipway at auckland.ac.nz
Tue Feb 22 22:17:47 CET 2011

Ah, I see what you mean - he's looking for the last saved values, rather than the last update time.  RRDs::lastupdate and RRDs::last are sort of named backwards, it seems to me.

In this case, I would either use RRDs::info (as Tobi suggested) or you could do it with a RRDs::fetch and a bit of work.


Steve Shipway
ITS Unix Services Design Lead
University of Auckland, New Zealand
Floor 1, 58 Symonds Street, Auckland
Phone: +64 (0)9 3737599 ext 86487
DDI: +64 (0)9 924 6487
Mobile: +64 (0)21 753 189
Email: s.shipway at auckland.ac.nz<mailto:s.shipway at auckland.ac.nz>
P Please consider the environment before printing this e-mail

From: jkeroes at gmail.com [mailto:jkeroes at gmail.com] On Behalf Of Joshua Keroes
Sent: Wednesday, 23 February 2011 6:55 a.m.
To: Steve Shipway
Cc: Sean Whitney; rrd-users at lists.oetiker.ch
Subject: Re: [rrd-users] perl and lastupdate

It's a little different than what Sean was looking for.

last() returns just a timestamp.
lastupdate() returns a timestamp with all corresponding values.
On Mon, Feb 21, 2011 at 7:37 PM, Steve Shipway <s.shipway at auckland.ac.nz<mailto:s.shipway at auckland.ac.nz>> wrote:
$lastupdate = RRDs::last($rrd);
Doesn't this work for you?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110222/e2a23190/attachment.htm 

More information about the rrd-users mailing list