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    


Migration issues!! Please Help!

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
rhettardo



Joined: 01 Jun 2007
Posts: 11

PostPosted: Fri Jul 25, 2008 11:19 am    Post subject: Migration issues!! Please Help! Reply with quote

Hello.

I am in the process of migrating one of my cacti installations that is currently on a virtual server and moving it to a dedicated server. I tried to make things as simple as possible as I have 0.8.7b install w/ plug in architecture 2.1 w/ various plugins and custom graph/data templates running on CentOS 5.2.

What I did was stop cron, tar'd -czf the /mnt/home/cacti.domain.com/www/ directory of the cacti installation on the old virtual server and exported the MySQL database.

On the new server I created a new database, imported the exported database from the virtual server and tar -xzf my archive to the /var/www/html directory. I setup cron and thought everything was good to go. I was wrong.

Through various trouble shooting I noticed (of course a simple oversight I didnt think of until later in the day) the paths to the log file and spine were incorrect. Once that was fixed I was able to see cron was working via the log file but no new data appeared in any of the graphs. I debuged the graphs and saw they were obviously pointing to the right location (now /var/www/html/rra). From here I sent the cron output to /var/www/html/cacti_cron_error, this is when I saw that the updates were trying to be written to the rrd's in /mnt/home/cacti.domain/com/www/rra.

I then created a symbolic link from /var/www/html/rra/* to /mnt/home/cacti.domain.com/www/rra/* (i did the same w/ the scripts/ directory since this was an issue as well). It was like magic! Everything started working.

Now the question. How the heck do I change where cacti is referencing the scripts/ and rra/ directories? I would much prefer to resolve the situation rather than band aid it like I have. Also this is not the complete story. Before I figured out from the cron output that things were not being looked for in the proper directory I was having an issue with the log and spine paths reverting back to their old locations (this happened 3 times) but this was only occurring before I created the symbolic links (its been working for a day now w/ no issues).

Thanks for reading my rant and I hope someone can help!

-Rhett R.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9257
Location: MI, USA

PostPosted: Fri Jul 25, 2008 11:51 am    Post subject: Reply with quote

So long as Global.php is setup properly, you simply "Repopulate" the poller cache under System Utilities -> Repopulate Poller Cache.

TheWitness
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group