[rrd-users] Re: I just want to merge two files, really.

Zicarelli, Gabriel gzicarelli at lopezleon.com
Mon Nov 8 21:35:49 MET 2004


> From: Aaron Glenn [mailto:aaron.glenn at gmail.com] 
> Sent: Monday, November 08, 2004 4:58 PM
> To: Zicarelli, Gabriel
> Cc: rrd-users at list.ee.ethz.ch
> Subject: Re: [rrd-users] Re: I just want to merge two files, really.
> 
> 
> Thanks Gabriel. I'm dense and daft, so if you don't mind please hold
> my hand on this one. Exactly how do I update the two-week (second)
> file with the actual (first) file? What goes where?
> 
> Thanks,
> aaron.glenn
> 
>

try this (though it's not entirely nice...):

$ rrdtool fetch RRD.rrd --start N LAST | awk '{print $1$2":"$3}' >>
export_file
$ rrdtool update RRD.rrd `cat export_file`

as usual replace the variables within the awk block with the number of
variables
you're dealing with.

;-)

--
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