X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2Frrdfetch.pod;h=0052aa6513b1a82b351d5e705cc5fd185f78d090;hb=7c4039b31bcabef8f914ce245b71c43509ded6ca;hp=3611928b9c122ce64de2a7288956cded462556e7;hpb=342b22c3e74a10d7049285c2cea7383676bcfc95;p=rrdtool.git diff --git a/doc/rrdfetch.pod b/doc/rrdfetch.pod index 3611928..0052aa6 100644 --- a/doc/rrdfetch.pod +++ b/doc/rrdfetch.pod @@ -8,6 +8,7 @@ B B I I S<[B<--resolution>|B<-r> I]> S<[B<--start>|B<-s> I]> S<[B<--end>|B<-e> I]> +S<[B<--daemon> I
]> =head1 DESCRIPTION @@ -48,6 +49,15 @@ the end of the time series in seconds since epoch. See also AT-STYLE TIME SPECIFICATION section for a detailed explanation of how to specify the end time. +=item B<--daemon> I
+ +Address of the L daemon. If specified, a C command is sent +to the server before reading the RRD files. This allows B to return +fresh data even if the daemon is configured to cache values for a long time. +For a list of accepted formats, see the B<-l> option in the L manual. + + rrdtool fetch --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd AVERAGE + =back =head2 RESOLUTION INTERVAL @@ -103,7 +113,7 @@ Using the bash shell, this could look be: TIME=$(date +%s) RRDRES=900 rrdtool fetch subdata.rrd AVERAGE -r $RRDRES \ - -e $(echo $(($TIME/$RRDRES*$RRDRES))) -s e-1h + -e $(($TIME/$RRDRES*$RRDRES)) -s e-1h Or in Perl: @@ -257,6 +267,22 @@ I<931225537> -- 18:45 July 5th, 1999 I<19970703 12:45> -- 12:45 July 3th, 1997 (my favorite, and its even got an ISO number (8601)). +=head1 ENVIRONMENT VARIABLES + +The following environment variables may be used to change the behavior of +Cfetch>: + +=over 4 + +=item B + +If this environment variable is set it will have the same effect as specifying +the C<--daemon> option on the command line. If both are present, the command +line argument takes precedence. + +=back + =head1 AUTHOR -Tobias Oetiker +Tobias Oetiker Etobi@oetiker.chE +