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).
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:
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.
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.
Can Cacti be migrated between two CentOS 7 servers with different names?
Moderators: Developers, Moderators
Re: Can Cacti be migrated between two CentOS 7 servers with different names?
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.
Who is online
Users browsing this forum: No registered users and 4 guests