From 3e4180e7b73c94db79d10bf884b31fbbe3691004 Mon Sep 17 00:00:00 2001 From: Peter Stamfest Date: Mon, 24 Feb 2014 21:10:01 +0100 Subject: [PATCH] Add documentation for modify command --- doc/Makefile.am | 3 +- doc/rrdmodify.pod | 75 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 doc/rrdmodify.pod diff --git a/doc/Makefile.am b/doc/Makefile.am index c8057405..0d908bd5 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -13,7 +13,8 @@ POD = bin_dec_hex.pod rrddump.pod rrdgraph_examples.pod rrdre rpntutorial.pod rrdfirst.pod rrdgraph_rpn.pod rrdtool.pod rrdcached.pod \ rrd-beginners.pod rrdinfo.pod rrdtune.pod rrdbuild.pod rrdflushcached.pod \ rrdcgi.pod rrdgraph.pod rrdlast.pod rrdlastupdate.pod \ - rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.pod + rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.pod \ + rrdmodify.pod if BUILD_LIBDBI POD += rrdgraph_libdbi.pod diff --git a/doc/rrdmodify.pod b/doc/rrdmodify.pod new file mode 100644 index 00000000..5f1c60d9 --- /dev/null +++ b/doc/rrdmodify.pod @@ -0,0 +1,75 @@ +=head1 NAME + +rrdmodify - Change the data source structure of an RRD + +=head1 SYNOPSIS + +B {B} I I +S<[ BI | BI ... ]> + +=head1 DESCRIPTION + +The B function copies an RRD file I to +I, possible removing or adding data sources on the +fly. When I and I denote the same file, +this is (almost) identical to an in-place modification. + +=over 8 + +=item I + +The name of the source B file you want to copy/modify. + +=item I + +The name of the destination B file. If it names the same file as +I, the new RRD will effectively relace the old one. + +=item BI + +Every data source named with a DEL specification will be removed +during the copy operation. The resulting RRD will miss both the +definition and the data for that data source. Multiple DEL +specifications are permitted. + + +=item BI + +For every such data source definition (for the exact syntax see the +create command), a new data source will be added to the output +RRD. Multiple DS specifications are permitted. + +=item B<--daemon> I
+ +If given, B will try to connect to the caching daemon +L at I
and will fail if the connection cannot be +established. If the connection is successfully established the data +for the I will be flushed before performing the +copy/modify operation. Afterwards the I will be +forgotten by the cache daemon, so that the next access using the +caching daemon will read the proper structure. + +For a list of accepted formats, see the B<-l> option in the L manual. + +=back + +=head1 ENVIRONMENT VARIABLES + +The following environment variables may be used to change the behavior of +Cupdate>: + +=over + +=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 AUTHORS + +Tobias Oetiker , +Peter Stamfest + -- 2.47.2