Code

RRDcached patch. This implements an infrastructure, where rrd updates can be
[rrdtool.git] / doc / rrdlastupdate.pod
1 =head1 NAME
3 rrdlastupdate - Return the most recent update to an RRD
5 =head1 SYNOPSIS
7 B<rrdtool> B<lastupdate> I<filename>
8 S<[B<--daemon> I<address>]>
10 =head1 DESCRIPTION
12 The B<lastupdate> function returns the UNIX timestamp and the 
13 value stored for each datum in the most recent update of an 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 lastupdate --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>lastupdate>:
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 Andy Riebs E<lt>andy.riebs@hp.comE<gt>