[rrd-users] Re: extracting data from .rrd files

This is a discussion on [rrd-users] Re: extracting data from .rrd files within the RRD Users forums, part of the Networking and Network Related category; On Thu, Mar 24, 2005 at 04:11:45PM -0500, D.Walsh wrote: > I have examined "rrdtool dump ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-25-2005
Martin Schuster
 
Posts: n/a
Default [rrd-users] Re: extracting data from .rrd files

On Thu, Mar 24, 2005 at 04:11:45PM -0500, D.Walsh wrote:
> I have examined "rrdtool dump filename >outfile.xml", problem is the
> data recovered is hard to understand since I am trying to edit this
> data and correct or add missing data and I was hoping for something in
> a human-readable format.
>
> If HR is not an possible option, how do I interpret the following so I
> can make the changes I require?
>
> <!-- 2005-03-21 18:00:00 EST / 1111446000 --> <row><v>
> 0.0000000000e+00 </v></row>
> <!-- 2005-03-21 18:30:00 EST / 1111447800 --> <row><v>
> 2.7777777778e-03 </v></row>
>

at 2005-03-21 18:00:00 EST (1111446000 seconds since 1970-01-01 00:00),
the value was 0
at 2005-03-21 18:30:00 EST (1111447800 seconds since 1970-01-01 00:00),
the value was 2.778e-03, thats 0.002778
how much more readable do you want it? :)

If you need simple time:value pairs, you could do sth like
perl -n -e 'printf ("%s %s\n", $1, $2) if (s/(\d{9,10}) .* ([\d.e+\-]{16})/)' \
< file.rrd > file.txt
(untested :)
--
+------------------------------------------------------------------* .-.
| Martin Schuster Microsoft is not the answer /v\
| <schuster@isja.org> www.tabr.org Microsoft is the question // \\
| <Douglas@karanet.at> ICQ# 20511117 "Linux!" is the answer /( )\
+--------------------------------------------------------------* ^^-^^

-- Attached file removed by Ecartis and put at URL below --
-- Type: application/pgp-signature
-- Desc: Digital signature
-- Size: 190 bytes
-- URL : http://www.ee.ethz.ch/~slist/p/4243C...-signature.asc


--
Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply With Quote
Reply


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

vB 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 04:37 PM.


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