]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/blame - doc/rrdlast.pod
add pango
[thirdparty/rrdtool-1.x.git] / doc / rrdlast.pod
CommitLineData
37fc6638
TO
1=head1 NAME
2
0256acf5 3rrdlast - Return the date of the last data sample in an RRD
37fc6638 4
37fc6638
TO
5=head1 SYNOPSIS
6
7B<rrdtool> B<last> I<filename>
5a00dc40 8S<[B<--daemon>|B<-d> I<address>]>
37fc6638
TO
9
10=head1 DESCRIPTION
11
9e0585d7
TO
12The B<last> function returns the UNIX timestamp of the most recent
13update of the RRD.
37fc6638
TO
14
15=over 8
16
17=item I<filename>
18
19The name of the B<RRD> that contains the data.
20
5a00dc40 21=item B<--daemon>|B<-d> I<address>
c2f7bec9
TO
22
23Address of the L<rrdcached> daemon. If specified, a C<flush> command is sent
24to the server before reading the RRD files. This allows B<rrdtool> to return
a548a57d
TO
25fresh data even if the daemon is configured to cache values for a long time.
26For a list of accepted formats, see the B<-l> option in the L<rrdcached> manual.
c2f7bec9
TO
27
28 rrdtool last --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
29
30=back
31
32=head1 ENVIRONMENT VARIABLES
33
34The following environment variables may be used to change the behavior of
35C<rrdtoolE<nbsp>last>:
36
37=over 4
38
39=item B<RRDCACHED_ADDRESS>
40
41If this environment variable is set it will have the same effect as specifying
42the C<--daemon> option on the command line. If both are present, the command
43line argument takes precedence.
44
37fc6638
TO
45=back
46
47=head1 AUTHOR
48
49Russ Wright <rwwright@home.com>
7fb9abb8 50Daemon support added by Steve Shipway <steve@steveshipway.org>
37fc6638
TO
51
52