On Fri, Sep 13, 2002 at 08:49:45AM +0200, John Goor wrote: > The next problems and questions arise: > - when i fetch the database, 295 lines show up. > I expect 10 lines however (for 10 samples are specified in the RRA)
It does not matter how many rows there are in the database. If you ask for a specific range, you will get a specific range. It is possible that many rows aren't known --> NaN. You ask for time "t" and RRDtool tells you "I don't know". > - I want the db to start at the time specified, 1022925300 because the data > I enter starts at 1022925600. > When I use RRDs::fetch (the script from the tutorial),1031863200 shows up > as the last date and 1031776500 as the first. *You* specify the start and end times. If you don't do so on the command line, you implicitly ask for "--start end-24h" "--end now". RRDtool returns one row more than requested. This can be seen as a feature or as a bug; let's not go into that discussion. If you do 1031863200-1031776500 you get 86700 (24h + 300s). > There should be a way to bulk-update isn't there? A script that returns data as follows: update my.rrd 1022925600:1 update my.rrd 1022925900:2 1022926200:3 update my.rrd 1022926500:2 1022926800:1 update my.rrd 1022927100:1 and so on (note: this is *text*, not command!) you can pipe this to RRDtool. Let's call the script "bulkupdater". bulkupdater | rrdtool - HTH Alex -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
