Code

control: Updated standards-version to 3.9.5 -- no changes.
[pkg-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.
26 For a list of accepted formats, see the B<-l> option in the L<rrdcached> manual.
28  rrdtool lastupdate --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
30 =back
32 =head1 ENVIRONMENT VARIABLES
34 The following environment variables may be used to change the behavior of
35 C<rrdtoolE<nbsp>lastupdate>:
37 =over 4
39 =item B<RRDCACHED_ADDRESS>
41 If this environment variable is set it will have the same effect as specifying
42 the C<--daemon> option on the command line. If both are present, the command
43 line argument takes precedence.
45 =back
47 =head1 AUTHOR
49 Andy Riebs E<lt>andy.riebs@hp.comE<gt>