X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdxport.pod;h=d7e6bb34616e9a4c76a75e0b168136e0f76adf04;hp=ca0e3aa2ac8c416e3e7241dc5884997bd20cacfe;hb=22129bb15a8ad204cf8a5e88e8834ec0b51908c0;hpb=1ed31d581dfed23377a61d4df88bb9c2b9b2c94b diff --git a/doc/rrdxport.pod b/doc/rrdxport.pod index ca0e3aa..d7e6bb3 100644 --- a/doc/rrdxport.pod +++ b/doc/rrdxport.pod @@ -4,20 +4,21 @@ 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]]> =head1 DESCRIPTION -The B functions main purpose is to write XML formatted +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. @@ -65,9 +81,9 @@ referenced by I are printed. Optionally add a legend. =head1 Output format -The output is enclosed in a B element and contains two +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: @@ -80,9 +96,9 @@ Let's assume that the I command looks like this: XPORT:xx:"out bytes" \ XPORT:aa:"in and out bits" -The resulting meta data section (the values will depend on the +The resulting meta data section is (the values will depend on the RRD characteristics): - + 1020611700 300 @@ -94,8 +110,8 @@ RRD characteristics): in and out bits - -The resulting data section: + +The resulting data section is: 10206117003.4000000000e+005.4400000000e+01 @@ -131,8 +147,22 @@ The resulting data section: 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