How do I move my rrds to my new MRTG system.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I move my rrds to my new MRTG system.

Mersberger, Robert-2
How do I move my rrds to my new MRTG system.

as a test I used rsync to move some of my rrds from my current production mrtg system to the new mrtg systems that I am building. After I did this I created the new cfg files for these devices but then I started getting the following errors.

2008-07-22 09:20:03: ERROR: Cannot tune logfile: This RRD was created on another architecture
2008-07-22 09:20:03: ERROR: Cannot update /usr/local/rrd_data/10.0.14.254_se0_0_0.rrd with '1216736402:689122584:432319783' This RRD was created on another architecture

2008-07-22 09:20:03: ERROR: Cannot tune logfile: This RRD was created on another architecture
2008-07-22 09:20:03: ERROR: Cannot update /usr/local/rrd_data/10.0.14.254_fa0_0.rrd with '1216736402:720868576:1370677120' This RRD was created on another architecture

My production system is as follows
Linux mrtg.beverlycorp.com 2.6.19-1.2895.fc6 #1 SMP Wed Jan 10 18:32:37 EST 2007 i686 athlon i386 GNU/Linux

My new system is as follows
Linux mrtg2.beverlycorp.com 2.6.25-14.fc9.x86_64 #1 SMP Thu May 1 06:06:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux


Is my problem because I was using rsync ?   

If I should have been using rrdtools export, I do I set it up to export the whole directory?


Stuck in the middle on this one as my user wants the history to follow to the new system.




Robert Mersberger
LAN Consultant, Information Technology
Phone 479-201-3442
Fax 479-478-3837
Email [hidden email]
www.Goldenliving.com
Golden Living
1000 Fianna Way
Fort Smith, AR 72919

<<Mersberger, Robert.vcf>>

Please consider the environment before printing this e-mail.

CONFIDENTIAL NOTICE:
This e-mail message and any attachment(s) (collectively, this 'Email') are intended
only for the confidential use of the recipient(s) named above. If the reader of this
message is not the intended recipient named above or an agent responsible for
delivering it to the intended recipient named above, you have received this Email in error.
Please notify the sender immediately and permanently delete this Email and any copies thereof.


Mersberger, Robert.vcf (329 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How do I move my rrds to my new MRTG system.

Matthias.Merk
[hidden email] schrieb am 25.07.2008 23:41:32:

> as a test I used rsync to move some of my rrds from my current
> production mrtg system to the new mrtg systems that I am building.
> After I did this I created the new cfg files for these devices but
> then I started getting the following errors.
> 2008-07-22 09:20:03: ERROR: Cannot tune logfile: This RRD was
> created on another architecture
> 2008-07-22 09:20:03: ERROR: Cannot update /usr/local/rrd_data/10.0.
> 14.254_se0_0_0.rrd with '1216736402:689122584:432319783' This RRD
> was created on another architecture
> 2008-07-22 09:20:03: ERROR: Cannot tune logfile: This RRD was
> created on another architecture
> 2008-07-22 09:20:03: ERROR: Cannot update /usr/local/rrd_data/10.0.
> 14.254_fa0_0.rrd with '1216736402:720868576:1370677120' This RRD was
> created on another architecture
> My production system is as follows
> Linux mrtg.beverlycorp.com 2.6.19-1.2895.fc6 #1 SMP Wed Jan 10 18:
> 32:37 EST 2007 i686 athlon i386 GNU/Linux
> My new system is as follows
> Linux mrtg2.beverlycorp.com 2.6.25-14.fc9.x86_64 #1 SMP Thu May 1
> 06:06:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
>
> Is my problem because I was using rsync ?
> If I should have been using rrdtools export, I do I set it up to
> export the whole directory?
>
> Stuck in the middle on this one as my user wants the history to
> follow to the new system.

hi

i guess the problem is one machine is i686 the other x86_64

a quick google revealed this
http://net.doit.wisc.edu/~plonka/list/flowscan/archive/1448.html
quote:
"RRD files are endian-specific, for performance benefit ...
When you want to copy/move from one platform to another, you can use
"rrdtool dump" to convert them to a portable XML format, then "rrdtool
restore" to restore them to a binary format appropriate for the
localhost.See "man rrddump" and "man rrdrestore" for details."

HTH
----------------
Disclaimer:
Diese Nachricht dient ausschließlich zu Informationszwecken und ist nur
für den Gebrauch des angesprochenen Adressaten bestimmt.

This message is only for informational purposes and is intended solely for
the use of the addressee.
----------------


Reply | Threaded
Open this post in threaded view
|

Re: How do I move my rrds to my new MRTG system.

Mersberger, Robert-2
 Yes, one machine is i686 the other x86_64. I will look deeper into rrdtools to get this done. Are you aware of how I can do this, (dump and restore) in bulk rather that one rrd at a time?

Thanks for responding.


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Saturday, July 26, 2008 3:43 PM
To: [hidden email]
Subject: Re: [rrd-users] How do I move my rrds to my new MRTG system.

[hidden email] schrieb am 25.07.2008 23:41:32:

> as a test I used rsync to move some of my rrds from my current
> production mrtg system to the new mrtg systems that I am building.
> After I did this I created the new cfg files for these devices but
> then I started getting the following errors.
> 2008-07-22 09:20:03: ERROR: Cannot tune logfile: This RRD was created
> on another architecture
> 2008-07-22 09:20:03: ERROR: Cannot update /usr/local/rrd_data/10.0.
> 14.254_se0_0_0.rrd with '1216736402:689122584:432319783' This RRD was
> created on another architecture
> 2008-07-22 09:20:03: ERROR: Cannot tune logfile: This RRD was created
> on another architecture
> 2008-07-22 09:20:03: ERROR: Cannot update /usr/local/rrd_data/10.0.
> 14.254_fa0_0.rrd with '1216736402:720868576:1370677120' This RRD was
> created on another architecture My production system is as follows
> Linux mrtg.beverlycorp.com 2.6.19-1.2895.fc6 #1 SMP Wed Jan 10 18:
> 32:37 EST 2007 i686 athlon i386 GNU/Linux My new system is as follows
> Linux mrtg2.beverlycorp.com 2.6.25-14.fc9.x86_64 #1 SMP Thu May 1
> 06:06:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
>
> Is my problem because I was using rsync ?
> If I should have been using rrdtools export, I do I set it up to
> export the whole directory?
>
> Stuck in the middle on this one as my user wants the history to follow
> to the new system.

hi

i guess the problem is one machine is i686 the other x86_64

a quick google revealed this
http://net.doit.wisc.edu/~plonka/list/flowscan/archive/1448.html
quote:
"RRD files are endian-specific, for performance benefit ...
When you want to copy/move from one platform to another, you can use "rrdtool dump" to convert them to a portable XML format, then "rrdtool restore" to restore them to a binary format appropriate for the localhost.See "man rrddump" and "man rrdrestore" for details."

HTH
----------------
Disclaimer:
Diese Nachricht dient ausschließlich zu Informationszwecken und ist nur für den Gebrauch des angesprochenen Adressaten bestimmt.

This message is only for informational purposes and is intended solely for the use of the addressee.
----------------

_______________________________________________
rrd-users mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


Please consider the environment before printing this e-mail.

CONFIDENTIAL NOTICE:
This e-mail message and any attachment(s) (collectively, this 'Email') are intended
only for the confidential use of the recipient(s) named above. If the reader of this
message is not the intended recipient named above or an agent responsible for
delivering it to the intended recipient named above, you have received this Email in error.
Please notify the sender immediately and permanently delete this Email and any copies thereof.


Reply | Threaded
Open this post in threaded view
|

Re: How do I move my rrds to my new MRTG system.

Matthias.Merk
"Mersberger, Robert" <[hidden email]> schrieb am
28.07.2008 15:36:36:

>  Yes, one machine is i686 the other x86_64. I will look deeper into
> rrdtools to get this done. Are you aware of how I can do this, (dump
> and restore) in bulk rather that one rrd at a time?
>
> Thanks for responding.

I dont know if rrdtool has a option for doing it recursivly,
but something like this should do it if the filenames stay the same:

for i in *.rrd; do rrdtool dump $i > `basename $i .rrd`.xml; done
for i in *.xml; do rrdtool restore $i `basename $i .xml`.rrd;done

or use find if you have RRDs in subdirecties:
find . -name *.rrd -exec rrdtool dump {} >`basename {} .rrd`.xml \;

i didn't try these though ;)

HTH
----------------
Disclaimer:
Diese Nachricht dient ausschließlich zu Informationszwecken und ist nur
für den Gebrauch des angesprochenen Adressaten bestimmt.

This message is only for informational purposes and is intended solely for
the use of the addressee.
----------------


Reply | Threaded
Open this post in threaded view
|

Re: How do I move my rrds to my new MRTG system.

Pada
Matthias.Merk wrote
I dont know if rrdtool has a option for doing it recursivly,
but something like this should do it if the filenames stay the same:

for i in *.rrd; do rrdtool dump $i > `basename $i .rrd`.xml; done
for i in *.xml; do rrdtool restore $i `basename $i .xml`.rrd;done

or use find if you have RRDs in subdirecties:
find . -name *.rrd -exec rrdtool dump {} >`basename {} .rrd`.xml \;

i didn't try these though ;)
I've used the following to recursively dump & import:
for i in `find -name "*.rrd"`; do rrdtool dump $i > $i.xml; done
for i in `find -name "*.xml"`; do rrdtool restore $i `echo $i |sed s/.xml//g`; done

Enjoy

Chris