Move only configuration to QA server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Move only configuration to QA server

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Move only configuration to QA server

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Move only configuration to QA server

Post 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.
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Move only configuration to QA server

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Move only configuration to QA server

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Move only configuration to QA server

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Move only configuration to QA server

Post by lrnnetops »

Thank you benjaminsmith for you help.

Please mark it as resolved..
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Move only configuration to QA server

Post by benjaminsmith »

Thank you benjaminsmith for you help.

Please mark it as resolved..
@Irnnetops Great. Thanks for using the Nagios support forums.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked