Kod: Markera allt
sub RRA_update {
(my $variable, $value)=@_;
RRDs::updatev $RRDDataFile, '-t', $variable, "N:$value" or die "ERROR while updating RRD: ". RRDs::error(). "\n"}
Kod: Markera allt
sub RRA_update {
(my $variable, $value)=@_;
RRDs::updatev $RRDDataFile, '-t', $variable, "N:$value" or die "ERROR while updating RRD: ". RRDs::error(). "\n"}
Kod: Markera allt
RRDs::updatev $RRDDataFile, '-t', $variable, "N:$value"
Kod: Markera allt
sub setvar {
(my $variable, $value)=@_;
my $sql = "SELECT count(*) FROM settings WHERE variable='$variable' GROUP BY variable";
@result = $dbh->selectrow_array($sql, undef, @params);
if (@result[0]==0)
{createvar($variable, $value)}
else {$sql = "UPDATE settings SET value = '$value' WHERE variable='$variable'";
$sth = $dbh->prepare($sql);
$sth->execute or die "SQL Error: $DBI::errstr\n"}
if ($variable ~~ @Logvars) {RRA_update($variable, $value)}}
Det tolkar jag som att man kan få välja ordning endast. Och att man fortsfarande måste fylla på värden för alla annars kommer resterande DS få Unknown som value.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.
While it appears possible with the template switch to update data sources asynchronously, RRDtool implicitly assigns non-COMPUTE data sources missing from the template the *UNKNOWN* value.