On Tue, May 04, 2004 at 09:29:49AM +0200, Gerhard Strangar wrote: > > > update to insert the data. But how do a read from the RRA? I don't think > > > using rrdtool dump and applying sed to the XML file is a good idea. > > > Any suggestions? > > 1: why not? > > It's quite a lot of work to get the XML file to raw data again.
It will take some time, sure. > > 2: use rrdtool fetch perhaps? > > Okay, this could work. But I forgot something: I store MIN and MAX > values, too. But there's no way to tell rrdtool update to insert > AVERAGE, MIN and MAX. It is a bit of an hack: 1: create three new databases, DS type gauge 2: insert the numbers, min,avg,max each in their own database 3: dump the databases 4: merge the xml files 5: restore one database 6: use rrdtool tune to alter the DS type (if necessary) And if this isn't possible for whatever reason: With the combination of MIN,AVG,MAX and the new interval duration it should be possible to compute two or three updates per interval which will produce the desired result. HTH Alex -- I ask you to respect any "Reply-To" and "Mail-Follow-Up" headers. If you reply to me off-list, you'd better tell me you're doing so. If you don't, and if I reply to the list, that's your problem, not mine. -- 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
