Code

RRDcached patch. This implements an infrastructure, where rrd updates can be
[rrdtool.git] / doc / rrdlast.pod
1 =head1 NAME
3 rrdlast - Return the date of the last data sample in an RRD
5 =head1 SYNOPSIS
7 B<rrdtool> B<last> I<filename>
8 S<[B<--daemon> I<address>]>
10 =head1 DESCRIPTION
12 The B<last> function returns the UNIX timestamp of the most recent
13 update of the RRD.
15 =over 8
17 =item I<filename>
19 The name of the B<RRD> that contains the data.
21 =item B<--daemon> I<address>
23 Address of the L<rrdcached> daemon. If specified, a C<flush> command is sent
24 to the server before reading the RRD files. This allows B<rrdtool> to return
25 fresh data even if the daemon is configured to cache values for a long time. To
26 specify a UNIX domain socket use the prefix C<unix:>, see example below. Other
27 addresses are interpreted as normal network addresses, i.E<nbsp>e. IPv4 or IPv6
28 addresses in most cases.
30  rrdtool last --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
32 =back
34 =head1 ENVIRONMENT VARIABLES
36 The following environment variables may be used to change the behavior of
37 C<rrdtoolE<nbsp>last>:
39 =over 4
41 =item B<RRDCACHED_ADDRESS>
43 If this environment variable is set it will have the same effect as specifying
44 the C<--daemon> option on the command line. If both are present, the command
45 line argument takes precedence.
47 =back
49 =head1 AUTHOR
51 Russ Wright <rwwright@home.com>