Move Nagios to a New Server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bbraunsc
Posts: 8
Joined: Mon Jul 22, 2013 5:33 pm

Move Nagios to a New Server

Post by bbraunsc »

I recently tried to move my Nagios installation from one Ubuntu server to another. I ran the backup script and then restored the backup to the other server. All the nagios services besides the monitoring server started.

I'm wondering if this is the correct method for migrating Nagios to a new server? Any tips of help would be appreciated. By the way I'm currently running version Nagios XI 2012R2.3
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Move Nagios to a New Server

Post by abrist »

The backup script is the supported method. If the monitoring engine did not start, you most likely have a configuration issue.
1. Go to --> CCM --> Write config files.
2. Click "Write" and then click "Verify"
3. Do not click "Restart" just yet.
4. There should be some output from the verify. You most most likely see *errors*. Resolve the errors through the CCM and then repeat steps 1-4.
5. Once there are no more errors, restart nagios and verify if the monitoring process is running.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
bbraunsc
Posts: 8
Joined: Mon Jul 22, 2013 5:33 pm

Re: Move Nagios to a New Server

Post by bbraunsc »

I tried to write the configuration files in CCM but it gave me a permission error. I tried to reset the permission but it still did not work.
We are using ssl with nagios. Does the cert also need to be copied over to the new server? And if so should I change the hostname on the servers to match?
Last edited by bbraunsc on Tue Sep 10, 2013 4:22 pm, edited 1 time in total.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Move Nagios to a New Server

Post by abrist »

bbraunsc wrote:Does the cert also need to be copied over to the new server? And if so should I change the hostname on the servers to match?
Yes. Or just generate a new cert if it is self-signed. You will need to re-implement ssl on the new server:
http://assets.nagios.com/downloads/nagi ... ios_XI.pdf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked