[rrd-users] Re: extracting data from .rrd files
Emmanuel Muncal
graemann at gmail.com
Tue Apr 12 07:09:25 MEST 2005
Sir:
I tried your perl line: Heres my result:
# perl -n -e 'printf ("%s %s\n", $1, $2) if (s/(\d{9,10}) .*
([\d.e+\-]{16})/)' \
<mysample.rrd > file.txt
Substitution replacement not terminated at -e line 1.
How do you convert your values ? I get an exponential values in XML
file using the rrdtool dump.
Kindly excuse my questions Im just starting. =)
Thank you very much.
On Mar 25, 2005 1:20 AM, Martin Schuster <schuster at isja.org> wrote:
> 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 at isja.org> www.tabr.org Microsoft is the question // \\
> | <Douglas at 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/4243C9E722021-signature.asc
>
>
> --
> 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
>
>
--
Regards,
Emmanuel Muncal, ECE
--
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