1RRDLAST(1)                          rrdtool                         RRDLAST(1)
2
3
4

NAME

6       rrdlast - Return the date of the last data sample in an RRD
7

SYNOPSIS

9       rrdtool last filename [--daemon|-d address]
10

DESCRIPTION

12       The last function returns the UNIX timestamp of the most recent update
13       of the RRD.
14
15       filename
16               The name of the RRD that contains the data.
17
18       --daemon|-d address
19               Address of the rrdcached daemon. If specified, a "flush"
20               command is sent to the server before reading the RRD files.
21               This allows rrdtool to return fresh data even if the daemon is
22               configured to cache values for a long time.  For a list of
23               accepted formats, see the -l option in the rrdcached manual.
24
25                rrdtool last --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
26

ENVIRONMENT VARIABLES

28       The following environment variables may be used to change the behavior
29       of "rrdtool last":
30
31       RRDCACHED_ADDRESS
32           If this environment variable is set it will have the same effect as
33           specifying the "--daemon" option on the command line. If both are
34           present, the command line argument takes precedence.
35

AUTHOR

37       Russ Wright <rwwright@home.com> Daemon support added by Steve Shipway
38       <steve@steveshipway.org>
39
40
41
421.8.0                             2022-03-14                        RRDLAST(1)
Impressum