X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdxport.pod;h=d7e6bb34616e9a4c76a75e0b168136e0f76adf04;hp=bf05615241a700828c1a89a7d87b9532384aba44;hb=22129bb15a8ad204cf8a5e88e8834ec0b51908c0;hpb=4b7345f9345915c8061e4b37b26ce8887828c973 diff --git a/doc/rrdxport.pod b/doc/rrdxport.pod index bf05615..d7e6bb3 100644 --- a/doc/rrdxport.pod +++ b/doc/rrdxport.pod @@ -4,11 +4,12 @@ rrdxport - Export data in XML format based on data from one or several RRD =head1 SYNOPSIS -B B -S<[B<-s>|B<--start> I]> +B B +S<[B<-s>|B<--start> I]> S<[B<-e>|B<--end> I]> S<[B<-m>|B<--maxrows> I]> S<[B<--step> I]> +S<[B<--daemon> I
]> S<[BIB<=>IB<:>IB<:>I]> S<[BIB<=>I]> S<[BB<:>I[B<:>I]]> @@ -17,7 +18,7 @@ S<[BB<:>I[B<:>I]]> The B function's main purpose is to write an XML formatted representation of the data stored in one or several Bs. It -can also extract numerical reports. +can also extract numerical reports. If no I statements are found, there will be no output. @@ -48,6 +49,21 @@ for details. See L documentation. +=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 xport --daemon unix:/var/run/rrdcached.sock ... + +=item B<--enumds> + +The generated xml should contain the data values in enumerated tags. + + valval + =item BIB<=>IB<:>IB<:>I See I documentation. @@ -67,7 +83,7 @@ referenced by I are printed. Optionally add a legend. The output is enclosed in an B element and contains two blocks. The first block is enclosed by a B element and -contains some meta data. The second block is enclosed by a +contains some meta data. The second block is enclosed by a B element and contains the data rows. Let's assume that the I command looks like this: @@ -82,7 +98,7 @@ Let's assume that the I command looks like this: The resulting meta data section is (the values will depend on the RRD characteristics): - + 1020611700 300 @@ -94,7 +110,7 @@ RRD characteristics): in and out bits - + The resulting data section is: @@ -131,8 +147,22 @@ The resulting data section is: XPORT:out2:"if2 out bytes" \ XPORT:sum:"output sum" +=head1 ENVIRONMENT VARIABLES + +The following environment variables may be used to change the behavior of +Cxport>: + +=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 Eoetiker@ee.ethz.chE +Tobias Oetiker Etobi@oetiker.chE