[rrd-users] Re: Getting last value out
McCann, Brian
bmccann at andmore.com
Fri Apr 15 15:56:09 MEST 2005
I'm trying to avoid Perl...I'm not, nor have I ever been, a big fan of
it. But...that's a huge help. Thanks!
--Brian
-----Original Message-----
From: William Owen [mailto:william.owen at profilesmail.com]
Sent: Friday, April 15, 2005 9:54
To: McCann, Brian
Subject: RE: [rrd-users] Getting last value out
You can run a RRDTool last some.rrd to get the last update time. You
can then turn this around to make your RRDTool fetch.
-or-
my $rrd = '/some/database.rrd';
my $last = RRDs::last($rrd);
Then you would use $last as the time to fetch (I'm fuzzy on the Perl
Shared fetch arguments but if you're already doing it, I'm sure it won't
be that hard).
-----Original Message-----
From: McCann, Brian [mailto:bmccann at andmore.com]
Sent: Friday, April 15, 2005 7:11 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Getting last value out
This is such a simple question I must be missing something stupid. I'm
trying to get the last value of a DS out of an RRD, but for the life of
me can't figure out how. I figured that "rrdtool fetch" would do
it...but when I specify LAST, I get an error. I read the man page, and
was a little enlightened, but not much. Any help would be appreciated.
Thanks all.
--Brian
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Brian McCann
Network & Systems Administrator,
K12USA.com, Cool Tools for Schools
1-877-225-0100
bmccann at andmore.com <mailto:bmccann at andmore.com> http://www.k12usa.com
<http://www.k12usa.com/>
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the rrd-users
mailing list