[rrd-users] Re: RRDs::xport question

Ruttenberg, Tanya Tanya.Ruttenberg at ssa.gov
Thu Nov 9 14:52:06 MET 2006


Cc:ing the list as others may have thought the same thing.

The timestamps you refer to are only the start and end times, I believe.
When I use RRDp::xport (or "rrdtool xport" for that matter) each
timestamp for each entry shows up in the output, for example here is the
data section:

  <data>
 
<row><t>1162876500</t><v>3.8091439037e+03</v><v>7.5254298691e+03</v></ro
w>
 
<row><t>1162877400</t><v>4.4002949691e+03</v><v>1.6160240849e+04</v></ro
w>
 
<row><t>1162878300</t><v>5.1635579936e+03</v><v>1.3390737471e+04</v></ro
w>
 
<row><t>1162879200</t><v>5.1157988125e+03</v><v>1.1153650430e+04</v></ro
w>
            ++++++++++
            

Those are the timestamps I'm missing.  Again, the data structure
returned by RRDs::xport is an array and the "data" section looks like
this:

5  ARRAY(0xdb836c)
   0  ARRAY(0xdb82dc)
      0  3809.14390367829
      1  7525.4298691325
   1  ARRAY(0xdb7d24)
      0  4400.2949691366
      1  16160.2408487261
   2  ARRAY(0xdb7e44)
      0  5163.5579936394
      1  13390.7374707671

I want to see a 3rd element in each of ARRAY(0xdb82dc), ARRAY(0xdb7d24),
etc.  Is there some way to get this information using RRDs::xport?  Or
should I submit an enhancement? :-)

BTW I'm using rrdtool-1.2.12 on Solaris8.

Tanya Ruttenberg - RSIS Contractor
OTSO/DNE/NMPEB
tanya.ruttenberg at ssa.gov
410-965-9605


-----Original Message-----
From: Ho Siew Fah [mailto:hoswfh at singtel.com] 
Sent: Wednesday, November 08, 2006 7:35 PM
To: Ruttenberg, Tanya
Subject: RE: [rrd-users] RRDs::xport question

I think your timestamps are 1162876500  and   1162962000 respectively.
Use the following unix command to see the date/time.

date -r 1162876500
Tue Nov  7 13:15:00 SGT 2006

date -r 1162962000
Wed Nov  8 13:00:00 SGT 2006

-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Ruttenberg, Tanya
Sent: Thursday, November 09, 2006 3:23 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] RRDs::xport question

I recently implemented RRDs::xport in a script like this:
my @answer = RRDs::xport("-s", "$start_date", "-e", "$end_date", 
	"DEF:inbound=$rrdfile:$dsin:AVERAGE",
"DEF:outbound=$rrdfile:$dsout:AVERAGE", 
	"XPORT:inbound:Inbound", "XPORT:outbound:Outbound");

Here is what shows up in @answer (from the perl debugger):


  DB<2> x @answer
0  1162876500
1  1162962000
2  900
3  2
4  ARRAY(0xdb7af0)
   0  'Inbound'
   1  'Outbound'
5  ARRAY(0xdb836c)
   0  ARRAY(0xdb82dc)
      0  3809.14390367829
      1  7525.4298691325
   1  ARRAY(0xdb7d24)
      0  4400.2949691366
      1  16160.2408487261
   2  ARRAY(0xdb7e44)
      0  5163.5579936394
      1  13390.7374707671


I see the data, but where are the timestamps?



Tanya Ruttenberg - RSIS Contractor
OTSO/DNE/NMPEB
tanya.ruttenberg at ssa.gov
410-965-9605


--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list