[rrd-users] Re: incorrect data

Tobias Oetiker oetiker at ee.ethz.ch
Tue Mar 27 07:36:49 MEST 2001


Yesterday Juan York wrote:

 | Here is the the valid part of the code that I'm using to update the rrd
 | file.
 |
 |  RRDs::update ("/path/to/snre.rrd", "--template", "snre", "N:$output");
 | my $ERR=RRDs::error;
 |  die "ERROR while updating snre.rrd: $ERR\n" if $ERR;
 |
 | where $output is somewhere between 375 and 400.
 |
 |
 | Here is part of the dump
 |
 |  <!-- 2001-03-26 21:30:00 EST --> <row><v> 1.7421875000e+00 </v></row>
 |                         <!-- 2001-03-26 21:35:00 EST --> <row><v>
 | 1.6677213542e+00 </v></row>
 |                         <!-- 2001-03-26 21:40:00 EST --> <row><v>
 | 1.6677213542e+00 </v></row>
 |                         <!-- 2001-03-26 21:45:00 EST --> <row><v>

[snip]

 | Any ideas on what I did wrong?

the odds are that you ar not feeding the database what you think
you are feeding it ... try printing the content of $output

cheers
tobi

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list