Page 1 of 1

Move only configuration to QA server

Posted: Fri Oct 19, 2018 2:08 pm
by lrnnetops
Hi Team,

We having our Production Nagios server Ver. 5.4.8 with Enterprise License.

We are setting up a Testing Nagios server for testing changes before going live on Production. While doing that we wanted to only move the configuration (it should not include hosts & host groups etc) from production nagios server to Testing nagios server.

Let us know how can we achieve this.

Regards,
Rohan

Re: Move only configuration to QA server

Posted: Fri Oct 19, 2018 2:47 pm
by benjaminsmith
Hi @lrnnetops

In Nagios, services are mapped to hosts and hosts groups, so just importing the services from another machine will result in configuration issues.

One option is to use the backup your server, restore on the test server, and then use the Bulk Modification Tool to remove specific hosts and service configurations.

Backing up and restoring Nagios XI
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Bulk Modification Tool
https://support.nagios.com/kb/article/n ... l-733.html

Let me know if you have any other questions.

Re: Move only configuration to QA server

Posted: Thu Oct 25, 2018 11:52 am
by lrnnetops
Hi benjaminsmith,

As suggested & to reduce time we followed below steps.

1 - Took AMI of Nagios EC2 instance & created New Testing nagios EC2 instance.

2 - Started the instance but unable to see changes as we see below error on Testing Nagios UI.
testing-nagios-error.jpg
Please check & suggest how to fix it.

Re: Move only configuration to QA server

Posted: Thu Oct 25, 2018 1:10 pm
by benjaminsmith
Hi [user]@lrnnetops[/user]

Let's try restarting the database backend, wait a few seconds, and then check the System Status again.

Run the following commands in order:

Code: Select all

service nagios stop
service ndo2db stop
mv /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo2db.lock.bak
mv /usr/local/nagios/var/ndo.sock /usr/local/nagios/var/ndo.sock.bak
service ndo2db start
service nagios start

Re: Move only configuration to QA server

Posted: Tue Oct 30, 2018 12:16 pm
by lrnnetops
Hi benjaminsmith,

Appreciate you help. its solved the issue we were facing.

I have one more doubt about activation.

We moved our PROD Nagios XI server to AWS cloud. While migrating we took backup of our earlier PROD nagios server backup & restored it on AWS server. after that we didn't activate it with new IP (Changed AWS IP).

Do we have to reactivate our PROD nagios xi server with new AWS IP?

Also do we have to activate our Testing nagios xi server which we built from our PROD nagios XI AWS AMI?

Regards,
Rohan

Re: Move only configuration to QA server

Posted: Tue Oct 30, 2018 2:12 pm
by benjaminsmith
Hi Rohan,

Technically speaking you won't need to reactive under the new AWS IP until until renewal. However, I would recommend contacting our sales department at [email protected] and update your IP address to avoid any future interruptions.

Each Nagios XI license is approved for up to three installations: one primary monitoring/production, one backup/failover, and one test environment.

Let me know if you have any other questions.

Re: Move only configuration to QA server

Posted: Wed Oct 31, 2018 4:00 am
by lrnnetops
Thank you benjaminsmith for you help.

Please mark it as resolved..

Re: Move only configuration to QA server

Posted: Wed Oct 31, 2018 9:08 am
by benjaminsmith
Thank you benjaminsmith for you help.

Please mark it as resolved..
@Irnnetops Great. Thanks for using the Nagios support forums.