migrate cacti files from windows 7 to Windows 2012

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
chatravin
Posts: 5
Joined: Sun Jan 03, 2016 5:32 am

migrate cacti files from windows 7 to Windows 2012

Post by chatravin »

hi,
I have a running cacti (0.8.7g) on a windows 7 x64 machine and have to move it to a new win server 2012 x64 one. I'm new to cacti maintenance but with the help of the forum could install the same cacti as the old one and dump and restore the database, however couldn't find any straightforward procedure to move cacti files. So my new cacti pages load with the correct trees but no graphs. Could anyone help please?
Last edited by chatravin on Thu Jan 07, 2016 2:19 am, edited 1 time in total.
rockygado
Posts: 4
Joined: Sat Jan 02, 2016 7:18 am

Re: migrate cacti files from windows 7 to Windows 2012

Post by rockygado »

how did you restore your database
i need to back up my server how to do that ?
chatravin
Posts: 5
Joined: Sun Jan 03, 2016 5:32 am

Re: migrate cacti files from windows 7 to Windows 2012

Post by chatravin »

rockygado wrote:how did you restore your database
i need to back up my server how to do that ?
1- login into the windows where cacti is running
2-in the command prompt run the following command:
C:\Users\Administrator>mysqldump -u "user" -p"pass" "DB name" > "backupfile.sql"
if cacti has been installed with default settings the command above would look like:
C:\Users\Administrator>mysqldump -u root -pcacti cacti > cacti.sql
note that there is no space between -p and pass. if run correctly there should be a file named cacti.sql in C:\Users\Administrator

3- copy/paste the cacti.sql to the system where the new cacti has been installed. the destination directory could be C:\Users\Administrator
4- run the following command:
C:\Users\Administrator>mysql -u root -pcacti cacti < cacti.sql

and everything done.
chatravin
Posts: 5
Joined: Sun Jan 03, 2016 5:32 am

Re: migrate cacti files from windows 7 to Windows 2012

Post by chatravin »

:-? Isn't there any body here? I need help please...
chatravin
Posts: 5
Joined: Sun Jan 03, 2016 5:32 am

Re: migrate cacti(0.8.7g) from windows 7 x64 to Windows 2012

Post by chatravin »

I found a clue to my problem in readme section of the forum pointing to take a look at the debug information offered by the rrdtool.
http://forums.cacti.net/viewtopic.php?f=3&t=11747
I found the following message:
"The system cannot find the path specified."
so I will try to solve that specific problem.
chatravin
Posts: 5
Joined: Sun Jan 03, 2016 5:32 am

Re: migrate cacti files from windows 7 to Windows 2012

Post by chatravin »

a step forward.
The last problem was that rrdtool.exe in new machine was placed in a different folder than what was set in transfered cacti DB. So I moved rrdtool folder to what the debug info expected to be. by now graphs could be seen in cacti pages and the message in debug changed to "OK". Good, but there is still a problem in polling or data gathering, since what is shown in graphs are all from previous polls and nothing thereafter. I'm going to solve that too.
Good luck chatravin!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: migrate cacti files from windows 7 to Windows 2012

Post by BSOD2600 »

Did you use the installer or manually install all the bits on Windows 2012? Follow the guide in the numerical order listed on http://docs.cacti.net/manual:088:1_inst ... er_windows

For the poller issue, manually run it from the command line once (using the same start path and commands specified in the Task Scheduler). Does it work? the *.rrd files updated on that cycle?
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests