=head1 NAME
rrdupdate - Store a new set of values into the RRD
=for html
=head1 SYNOPSIS
B B I
S<[B<--template>|B<-t> I[B<:>I]...]>
S|IB<:>I[B<:>I...]>
S<[IB<:>I[B<:>I...] ...]>
=head1 DESCRIPTION
The B function feeds new data values into an B. The
data gets time aligned according to the properties of the B to
which the data is written.
=over 8
=item I
The name of the B you want to update.
=item B<--template>|B<-t> I[B<:>I]...
by default, the update function expects the data input in the order,
the data sources are defined in the RRD. This is not very error
resistant, as you might be sending the wrong data into a RRD.
The template switch allows you to specify which data sources you are
going to update and in which order. If the data sources specified in
the template are not available in the RRD file, the update process
will abort with an error message.
=item B|IB<:>I[B<:>I...]
The data used for updating the RRD was acquired at a certain time. This
time can either be defined in seconds since 1970-01-01. Or by using the
letter 'N' the update time is set to be the current time. Negative time
values are subtracted from the current time.
Getting the timing right to the second is especially
important when you are working with data-sources of type B,
B or B.
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
B (e.g. N:0.1:U:1) can be defined.
The format of the value acquired from the data source is dependent of the
data source type chosen. Normally it will be numeric, but the data acquisition
modules may impose their very own parsing of this parameter as long as the colon
(B<:>) remains the data source value separator.
=back
=head1 EXAMPLE
C
Update the database file demo1.rrd with 3 known and one I<*UNKNOWN*>
value. Use the current time as the update time.
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
normal readings. The update interval seems to be around 300 seconds.
=head1 AUTHOR
Tobias Oetiker