Can Cacti be migrated between two CentOS 7 servers with different names?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Can Cacti be migrated between two CentOS 7 servers with different names?

Post by stormonts »

We have Cacti running on a server called cacti-st-01 and are trying to move it to a new server called cacti-st-02. We installed Cacti on the new server, then dumped the DB, and imported it to the new server but we then see the error below when clicking on various devices and locations in Cacti and nothing is graphing (we are not having this issue on the current server).
error2.png
error2.png (6.91 KiB) Viewed 343 times

Looking at the "Data Collector" section, we see that it still says cacti-st-01 (the old server) as that is what was imported from the dump. Looking in MySQL on the current server we see this:
poller.png
poller.png (32.74 KiB) Viewed 343 times
The dbhost is the name of the server that everything was running on before cacti-st-01 (which has been deleted for 3 years), so I'm not sure why that is still there (but things have been working on cacti-st-01).

When we dump the database and then import it to cacti-st-02, the problem we are running into is that the "Data Collector" section of Cacti still points to that cacti-st-01 server.

If we go to https://cacti-st-02/cacti/install and then select "New primary server", no new data collector is created that refers to the new server.

Manually updating MySQL using "UPDATE cacti.poller SET dbhost = 'cacti-st-02.imsweb.com', hostname = 'cacti-st-02.imsweb.com' WHERE id = 1;" (since we are running the DB local to this server) updates the Data Collector but graphs still aren't being populated.
new.png
new.png (12.53 KiB) Viewed 343 times
We currently only have two hosts enabled on the new server and this is all that I see in the logs (which definitely doesn't help with the first "Sorry we could not process your last action" error that doesn't let us save changes on pages.
log.png
log.png (53.15 KiB) Viewed 343 times
stormonts
Cacti User
Posts: 349
Joined: Tue Mar 31, 2009 10:05 am

Re: Can Cacti be migrated between two CentOS 7 servers with different names?

Post by stormonts »

The "Sorry we could not process your last action" was caused by the Monitor plugin (version 2.5) on the new server. I have no idea why, but disabling that plugin got rid of that error.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests