Posted: Fri Jul 25, 2008 11:19 am Post subject: Migration issues!! Please Help!
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!