[rrd-users] info joining RRD files

Igor Longagnani i.longagnani at nextra.it
Mon Aug 20 16:08:27 MEST 2001



Hi,
newbie here.
This is my prob, 
I have two .rrd files let's say july.rrd and august.rrd
and I'd like to create a single .rrd file ( july-august.rrd ) 
so that I can query it with RRDs.pm ( graph method ), as I already can do
separately.

ok I made a littlescript that: 
- creates the final archive
  as a GAUGE ( 'cause I want t ofill it with raw data ) ---> and this works.

- "fetches" data from july.rrd ( router data )
  and "updates" them onto the new archive

- "fetches" data from august.rrd ( router data )
  and "updates" them onto the new archive.

At the end the script can query the archive also on a week-time period that
crosses the month basis on which old-archives were created.

Unfortunately I made some mistakes, coz' I cant't read from the final
archive
data from july.rrd but only august ones.
I DON'T UNDERSTAND WHY.

Please HELP.

FOLLOWS what i did ( partametrized but readable ):

...
# the final archive will have as many values as much months I am joining
# here the formula
my $values = ($nMonthTo - $nMonthFrom)*31*288;

# the archive will store this kinda values
my $sRRA   = 'RRA:AVERAGE:0.5:1:' . $values;

# the creation call
RRDs::create (<file>, '-b', $sStartDate , '-s', '300', $sInDS, $sOutDS,
$sRRA)
...

The archive is created but is filled the wrong way:
in a cycle for every month involved I fetch all data the update alla data to
the new .rrd file.
Of course I don't have to elaborate these data so I stored them as GAUGE.





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