Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Bloom - Cacti Migration Tool (Teaser)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Sun Jul 13, 2008 7:14 pm    Post subject: Bloom - Cacti Migration Tool (Teaser) Reply with quote

N3ncy and I teamed up to make this plugin. The porpoise, to make the migration from one Cacti Box to another as easy as it can possibly be. Every couple of days it seems we have someone on the forums asking how to migrate. Yes there are instructions, but it's still a time consuming process to even learn the steps to do it.

We've come up with this plugin to dump the MySQL database, Export the RRA's to XML, copy your scripts and copy your Plugins directory, it will then either Tar.Gz or Zip all that together into one file so it can be easily transported to your new machine and imported using the included Perl script.

Attached is a screen shot of the interface and a link to a video of how the Perl Script will work. Hopefully this gets your mouths watering for the actual release.

Teaser Video (normal people)

Teaser Video (everyone else)



SP32-20080714-080915.gif
 Description:
 Filesize:  32.37 KB
 Viewed:  4946 Time(s)

SP32-20080714-080915.gif




Last edited by streaker69 on Mon Jul 14, 2008 7:38 am; edited 2 times in total
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Mon Jul 14, 2008 2:21 am    Post subject: Reply with quote

Cool idea!

Just FYI, the video doesn't play in anything on the mac - might be better to reencode with a more common codec?

(edit: or windows)
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Mon Jul 14, 2008 7:39 am    Post subject: Reply with quote

Howie wrote:
Cool idea!

Just FYI, the video doesn't play in anything on the mac - might be better to reencode with a more common codec?

(edit: or windows)


I re-encoded it to Mpeg format. I would do it to QT, but I don't want to be known as one of those people that caters to the whims of Mac people.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2167
Location: United Kingdom

PostPosted: Mon Jul 14, 2008 7:43 am    Post subject: Reply with quote

streaker69 wrote:
Howie wrote:
Cool idea!

Just FYI, the video doesn't play in anything on the mac - might be better to reencode with a more common codec?

(edit: or windows)


I re-encoded it to Mpeg format. I would do it to QT, but I don't want to be known as one of those people that caters to the whims of Mac people.


I know what you mean... just .avi with a codec that has is somewhat heard of (e.g. divx, mp4, cinepak) works OK
Back to top
eternal
Cacti User


Joined: 14 Dec 2006
Posts: 57
Location: Kingsport TN

PostPosted: Mon Jul 14, 2008 8:33 am    Post subject: Reply with quote

Thanks for the re encoding

Great idea


From Abi Normal
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Fri Jul 25, 2008 8:10 am    Post subject: Reply with quote

Just for an update. I spoke with N3ncy lastnight about the import script for the Bloom project. He's close to having it done. A few more days and it should be ready to test out.
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 354
Location: Emeryville, CA

PostPosted: Fri Jul 25, 2008 8:29 am    Post subject: Reply with quote

Woo Hoo!!! I can't wait for this release.

Thanks for the effort guys, i am sure many people will benefit from it

app
Back to top
cdnvballer



Joined: 25 May 2007
Posts: 31

PostPosted: Wed Jul 30, 2008 6:16 pm    Post subject: Reply with quote

This is great to hear, can't wait...
I have to migrate my existing data to another device and this sounds like the perfect solution
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Wed Aug 06, 2008 11:31 am    Post subject: Reply with quote

A little more of a teaser.

N3ncy's part is almost completed, my part is almost completed. We're almost ready for testers. I'll be sending my changes over to him today for testing with his script.



SP32-20080806-122912.gif
 Description:
 Filesize:  33.49 KB
 Viewed:  4113 Time(s)

SP32-20080806-122912.gif



SP32-20080806-122928.gif
 Description:
 Filesize:  17.45 KB
 Viewed:  4113 Time(s)

SP32-20080806-122928.gif


Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Wed Aug 13, 2008 11:53 am    Post subject: Reply with quote

N3ncy noticed while he was testing the import function that I was exporting the entire MySQL database with the initial version I gave him. We decided that could be bad. I ended up re-writing a large portion of the export code so that individual databases can be selected for exporting instead of dumping everything in MySQL.

Here's a screencap of the result. We should be back on track for testing now that this is complete.

We're open to suggestions and comments now, as changes will be much easier to implement while we're still actively working on this. If you have an idea or you see something we missed, please post it here so we can address those concerns now.



SP32-20080813-124940.gif
 Description:
 Filesize:  26.18 KB
 Viewed:  3890 Time(s)

SP32-20080813-124940.gif


Back to top
curious_user2000



Joined: 19 Aug 2008
Posts: 1

PostPosted: Tue Aug 19, 2008 11:37 pm    Post subject: Waiting with baited breath Reply with quote

How is the tool comming along, I know we are all looking forward to testing it!
Back to top
Linegod
Developer


Joined: 20 Feb 2003
Posts: 518
Location: Canada

PostPosted: Fri Aug 22, 2008 9:42 am    Post subject: Reply with quote

streaker69 wrote:
We decided that could be bad. I ended up re-writing a large portion of the export code so that individual databases can be selected for exporting instead of dumping everything in MySQL.


Why not just dump the database that is global.php?
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Fri Aug 22, 2008 10:24 am    Post subject: Reply with quote

Linegod wrote:
streaker69 wrote:
We decided that could be bad. I ended up re-writing a large portion of the export code so that individual databases can be selected for exporting instead of dumping everything in MySQL.


Why not just dump the database that is global.php?


Well, I was looking at it from the aspect that other people might be doing what I'm doing, which is running a Snort database, an OpenAudIT database and maybe some others and in the process of migrating, they might want to migrate those as well.

Plus it also gives them a method to do a backup of any of their databases that can quickly re-imported or moved to another machine.

N3ncy and I decided we wanted to try to make this all encompassing as much as we can.

As for where we're at in progress, I'm not too sure. I think N3ncy has been a little busy, so I haven't heard from him for a few days, and I've been working on a new project, but that doesn't mean I've abandoned this one, just found something new to play with.

http://members.netjunkies.net/streaker/files/mame
Back to top
Linegod
Developer


Joined: 20 Feb 2003
Posts: 518
Location: Canada

PostPosted: Fri Aug 22, 2008 11:52 am    Post subject: Reply with quote

streaker69 wrote:

N3ncy and I decided we wanted to try to make this all encompassing as much as we can.


Down that path lies madness. Are you going to tar up the snort directory as well? Are you transferring cronjobs?
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Fri Aug 22, 2008 12:20 pm    Post subject: Reply with quote

Linegod wrote:
streaker69 wrote:

N3ncy and I decided we wanted to try to make this all encompassing as much as we can.


Down that path lies madness. Are you going to tar up the snort directory as well? Are you transferring cronjobs?


Yeah, I realize that part as well. We're gonna leave it up to people to do those kinds of configurations. Regardless, I already have the code written to list all the DB's and select the ones that should be exported.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group