]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Add documentation for modify command 447/head
authorPeter Stamfest <peter@stamfest.at>
Mon, 24 Feb 2014 20:10:01 +0000 (21:10 +0100)
committerPeter Stamfest <peter@stamfest.at>
Wed, 26 Feb 2014 10:29:03 +0000 (11:29 +0100)
doc/Makefile.am
doc/rrdmodify.pod [new file with mode: 0644]

index c80574052876b7e0bf64e04a18850ee30c3d9e87..0d908bd5153a917362836d1a893c45f89cd8cc05 100644 (file)
@@ -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 (file)
index 0000000..5f1c60d
--- /dev/null
@@ -0,0 +1,75 @@
+=head1 NAME
+
+rrdmodify - Change the data source structure of an RRD
+
+=head1 SYNOPSIS
+
+B<rrdtool> {B<modify>} I<in-filename> I<out-filename> 
+S<[ B<DEL:>I<ds-name> | B<DS:>I<ds-spec> ... ]>
+
+=head1 DESCRIPTION
+
+The B<modify> function copies an RRD file I<in-filename> to
+I<out-filename>, possible removing or adding data sources on the
+fly. When I<in-filename> and I<out-filename> denote the same file,
+this is (almost) identical to an in-place modification.
+
+=over 8
+
+=item I<in-filename>
+
+The name of the source B<RRD> file you want to copy/modify.
+
+=item I<out-filename>
+
+The name of the destination B<RRD> file. If it names the same file as
+I<in-filename>, the new RRD will effectively relace the old one.
+
+=item B<DEL:>I<ds-name>
+
+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 B<DS:>I<ds-spec>
+
+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<address>
+
+If given, B<RRDTool> will try to connect to the caching daemon
+L<rrdcached> at I<address> and will fail if the connection cannot be
+established. If the connection is successfully established the data
+for the I<in-filename> will be flushed before performing the
+copy/modify operation. Afterwards the I<out-filename> 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<rrdcached> manual.
+
+=back
+
+=head1 ENVIRONMENT VARIABLES
+
+The following environment variables may be used to change the behavior of
+C<rrdtoolE<nbsp>update>:
+
+=over
+
+=item B<RRDCACHED_ADDRESS>
+
+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 <tobi@oetiker.ch>,
+Peter Stamfest <peter@stamfest.at>
+