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

This is a discussion on [rrd-users] Re: RRDs::xport question within the RRD Users forums, part of the Networking and Network Related category; Cc:ing the list as others may have thought the same thing. The timestamps you refer to are only the ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-09-2006
Ruttenberg, Tanya
 
Posts: n/a
Default [rrd-users] Re: RRDs::xport question

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@ssa.gov
410-965-9605


-----Original Message-----
From: Ho Siew Fah [mailto:hoswfh@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@list.ee.ethz.ch
[mailto:rrd-users-bounce@list.ee.ethz.ch] On Behalf Of Ruttenberg, Tanya
Sent: Thursday, November 09, 2006 3:23 AM
To: rrd-users@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@ssa.gov
410-965-9605


--
Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request@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@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0