Code

Imported upstream version 1.4~rc2.
[pkg-rrdtool.git] / doc / rrdlast.txt
index 50255549f5c2d45ed8668ecbf34da0cfba209903..c80862bb9c11a7ac93bae0754f8b9eeecfe410ea 100644 (file)
@@ -6,7 +6,7 @@ N\bNA\bAM\bME\bE
        rrdlast - Return the date of the last data sample in an RRD
 
 S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
-       r\brr\brd\bdt\bto\boo\bol\bl l\bla\bas\bst\bt _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
+       r\brr\brd\bdt\bto\boo\bol\bl l\bla\bas\bst\bt _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be [-\b--\b-d\bda\bae\bem\bmo\bon\bn _\ba_\bd_\bd_\br_\be_\bs_\bs]
 
 D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
        The l\bla\bas\bst\bt function returns the UNIX timestamp of the most recent update
@@ -15,9 +15,27 @@ D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
        _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be
                The name of the R\bRR\bRD\bD that contains the data.
 
+       -\b--\b-d\bda\bae\bem\bmo\bon\bn _\ba_\bd_\bd_\br_\be_\bs_\bs
+               Address of the rrdcached daemon. If specified, a "flush" com-
+               mand is sent to the server before reading the RRD files. This
+               allows r\brr\brd\bdt\bto\boo\bol\bl to return fresh data even if the daemon is con-
+               figured to cache values for a long time.  For a list of
+               accepted formats, see the -\b-l\bl option in the rrdcached manual.
+
+                rrdtool last --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd
+
+E\bEN\bNV\bVI\bIR\bRO\bON\bNM\bME\bEN\bNT\bT V\bVA\bAR\bRI\bIA\bAB\bBL\bLE\bES\bS
+       The following environment variables may be used to change the behavior
+       of "rrdtool last":
+
+       R\bRR\bRD\bDC\bCA\bAC\bCH\bHE\bED\bD_\b_A\bAD\bDD\bDR\bRE\bES\bSS\bS
+           If this environment variable is set it will have the same effect as
+           specifying the "--daemon" option on the command line. If both are
+           present, the command line argument takes precedence.
+
 A\bAU\bUT\bTH\bHO\bOR\bR
        Russ Wright <rwwright@home.com>
 
 
 
-1.3.8                             2008-03-15                        RRDLAST(1)
+1.3.99909060808                   2008-09-25                        RRDLAST(1)