Page 1 of 1

Move Nagios to a New Server

Posted: Tue Sep 10, 2013 1:22 pm
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

Re: Move Nagios to a New Server

Posted: Tue Sep 10, 2013 1:46 pm
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.

Re: Move Nagios to a New Server

Posted: Tue Sep 10, 2013 4:14 pm
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?

Re: Move Nagios to a New Server

Posted: Tue Sep 10, 2013 4:22 pm
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