[rrd-users] Re: updating rrd from another rrd

Sunil Modi (IT) smodi at bordersgroupinc.com
Wed Feb 9 22:36:16 MET 2005


> Is there some way to update rrd file from other rrd file? Both have
> same structure, but data source names differ.
> 

Do a fetch on the RRD you want the info from and update to the new rrd.
I think this would work

@temp=RRD::fetch $Old_RRD AVERAGE
$size_of_temp=@temp
$new_data=$temp[$size_of_temp - 1]
RRD::update($New_RRD:$new_data)

The DS name won't matter in the situation since you are merely updating data with a timestamp and the locations are assumed to be known.

I think that will work.  Syntax needs to be checked.

Hope that helps,

-sunil

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