X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdupdate.pod;h=67908d016f986d6d64ee9af32d07160694267d6d;hp=cc0b452f76ce0e9faeb3d6cbd54058f5fa86f40f;hb=49db9345033e46dbba978386d8e9f73f4e145a48;hpb=5fc7ff89bdbced9c593c566fea9840a269935dcd diff --git a/doc/rrdupdate.pod b/doc/rrdupdate.pod index cc0b452..67908d0 100644 --- a/doc/rrdupdate.pod +++ b/doc/rrdupdate.pod @@ -6,6 +6,7 @@ rrdupdate - Store a new set of values into the RRD B {B | B} I S<[B<--template>|B<-t> I[B<:>I]...]> +S<[B<--daemon> I
]> [B<-->] S|IB<:>I[B<:>I...]> SB<@>I[B<:>I...]> S<[IB<:>I[B<:>I...] ...]> @@ -29,6 +30,9 @@ RRA (consolidation function and PDPs per CDP), and data source (name). Note that depending on the arguments of the current and previous call to update, the list may have no entries or a large number of entries. +Since B requires direct disk access, the B<--daemon> option cannot be +used with this command. + =item I The name of the B you want to update. @@ -56,6 +60,15 @@ function. If this is done accidentally (and this can only be done using the template switch), B will ignore the value specified for the COMPUTE B. +=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 values will be sent to the daemon +instead of accessing the files directly. + +For a list of accepted formats, see the B<-l> option in the L manual. + =item B|IB<:>I[B<:>I...] The data used for updating the RRD was acquired at a certain @@ -69,6 +82,14 @@ timing right to the second is especially important when you are working with data-sources of type B, B or B. +When using negative time values, options and data have to be separated +by two dashes (B<-->), else the time value would be parsed as an option. +See below for an example. + +When using negative time values, options and data have to be separated +by two dashes (B<-->), else the time value would be parsed as an option. +See below for an example. + The remaining elements of the argument are DS updates. The order of this list is the same as the order the data sources were defined in the RRA. If there is no data for a certain data-source, the letter @@ -82,20 +103,72 @@ separator. =back -=head1 EXAMPLE +=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 EXAMPLES + +=over + +=item * C Update the database file demo1.rrd with 3 known and one I<*UNKNOWN*> value. Use the current time as the update time. +=item * + C Update the database file demo2.rrd which expects data from a single data-source, three times. First with an I<*UNKNOWN*> value then with two regular readings. The update interval seems to be around 300 seconds. -=head1 AUTHOR +=item * + +C + +Update the database file demo3.rrd two times, using five seconds in the +past and the current time as the update times. + +=item * + +C + +Update the file C with a single data source, using the +current time. If the caching daemon cannot be reached, do B fall back to +direct file access. + +=item * + +C + +Use the UNIX domain socket C to contact the caching daemon. If +the caching daemon is not available, update the file C directly. +B Since a relative path is specified, the following disturbing effect +may occur: If the daemon is available, the file relative to the working +directory B is used. If the daemon is not available, the file +relative to the current working directory of the invoking process is used. +B Don't do relative paths, kids! + +=back + +=head1 AUTHORS -Tobias Oetiker +Tobias Oetiker , +Florian Forster atEverplant.org>