From: Florian Forster Date: Sun, 22 Jun 2008 15:55:07 +0000 (+0200) Subject: rrdupdate(1): Move the examples and document `updatev's behavior. X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=commitdiff_plain;h=b80e26bf83d700304c01543eb27377003a9240ed rrdupdate(1): Move the examples and document `updatev's behavior. --- diff --git a/doc/rrdupdate.pod b/doc/rrdupdate.pod index 5d6044a..91752ef 100644 --- a/doc/rrdupdate.pod +++ b/doc/rrdupdate.pod @@ -6,7 +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<--cache> | B<--nocache>]> +S<[B<-->[B]B]> S<[B<--daemon> I
]> S|IB<:>I[B<:>I...]> SB<@>I[B<:>I...]> @@ -31,6 +31,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 options B<--[no]cache> and +B<--daemon> cannot be used with this command. + =item I The name of the B you want to update. @@ -67,11 +70,7 @@ established the values will be sent to the daemon instead of accessing the files directly. If B<--nocache> is given no connection attempt is made. If neither option is specified B will try to contact the daemon and, if no connection may be established, will fall back to direct file access. - -Examples: - - rrdtool update --cache /var/lib/rrd/foo.rrd N:123 - rrdtool update --nocache /var/lib/rrd/bar.rrd N:234 +This option is available for the B command only. =item B<--daemon> I
@@ -80,13 +79,7 @@ the everything after this prefix will be considered to be a UNIX domain socket. Otherwise the address is interpreted as network address or node name as understood by L. One practical consequence is that both, IPv4 and IPv6, may be used if the system supports it. - -Examples: - - rrdtool update --daemon unix:/tmp/rrdd.sock /var/lib/rrd/foo.rrd N:123 - rrdtool update --daemon ::1 /var/lib/rrd/bar.rrd N:234 - rrdtool update --daemon 10.0.0.2 /var/lib/rrd/baz.rrd N:345 - rrdtool update --daemon rrdtool.example.com /var/lib/rrd/qux.rrd N:456 +This option is available for the B command only. =item B|IB<:>I[B<:>I...] @@ -114,19 +107,48 @@ separator. =back -=head1 EXAMPLE +=head1 EXAMPLES + +=over 4 + +=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. +=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 ,