[rrd-users] Re: Last sample time

Frank Swasey fcs at zoo.uvm.edu
Mon Sep 17 19:51:30 MEST 2001


Today Pawel Dworniak wrote:

> Anyone know how to print
> last sample time on graph?

I use...

use POSIX qw(strftime);

$rrdstr = strftime "%a, %d %b %Y %T %Z", localtime(RRDs::last $rrd);

and then use a COMMENT as part of the RRDs::graph statement:

"COMMENT:".$rrdstr."\\c";

-- 
Frank Swasey                    | http://www.uvm.edu/~fcs
Systems Programmer              | Always remember: You are UNIQUE,
University of Vermont           |    just like everyone else.


--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list