Nagios XI Configuration replication

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sureshbabuy
Posts: 23
Joined: Wed Aug 26, 2015 11:31 am

Nagios XI Configuration replication

Post by sureshbabuy »

Hi

I am trying to replicate my configuration from Nagios XI to nagios xi 5 for a standby server
please let me know the procedure to export the config and import it to the new node
also I want the new server not to notify - In other words , notifications need to be disabled on the DR / Passive/Standby node
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Configuration replication

Post by lmiltchev »

Normally, you would need to follow the steps, outlined in this document. However, you may run into some issues, because the "new" Nagios XI installs don't use postgres db, while the "old" ones do.

Are the "old" and the "new" Nagios XI servers the same version, i.e. "Nagios XI 5.2.3"? Same architecture? How did you install the "old" Nagios XI instance? Was it a new, fullinstall or an upgrade from the older instance of XI?

If the "old" XI uses posgres, you will have issues restoring on the "new" server. This issue *should* be fixed in our new "restore_xi.sh" script (from the DEV revision of XI). If you don't want to wait until the next release of Nagios XI, I could send it to you (for testing) via PM. Let me know if you would like to try it.

As for the notifications, as soon as you restore your XI to the new server, disable notifications globally by setting:

Code: Select all

enable_notifications=0
in the "/usr/local/nagios/etc/nagios.cfg" file, and restarting nagios.

Code: Select all

service nagios restart
Be sure to check out our Knowledgebase for helpful articles and solutions!
sureshbabuy
Posts: 23
Joined: Wed Aug 26, 2015 11:31 am

Re: Nagios XI Configuration replication

Post by sureshbabuy »

Hi

The Older version is Nagios XI 2014R7. we are moving data into nagios xi 5.2.0.

Our initial installation was via fullinstall execution and not an upgrade

Both are of the same architecture

Please do send the latest release of restore_xi.sh
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Configuration replication

Post by lmiltchev »

I sent you a PM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sureshbabuy
Posts: 23
Joined: Wed Aug 26, 2015 11:31 am

Re: Nagios XI Configuration replication

Post by sureshbabuy »

Hi

I assume restore_xi.sh does restore all the binaries and config ( /usr/local/nagios & /etc/httpd/conf.d/* & database ) files etc - If I am not wrong

What if I wanted to restore only the config files ( /usr/local/nagios/etc/*.cfg and /usr/local/nagios/etc/services/ ) and the database restore. I don't want to touch any of the /etc/httpd/conf/ files

OS Linux / 64-bit
Nagios Version - 5.2.3

Thanks
Suresh Babu Y
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI Configuration replication

Post by hsmith »

You would have to modify the script/make your own to change that.
Former Nagios Employee.
me.
Locked