Page 1 of 1

NagiosXI synchronization

Posted: Fri May 10, 2019 11:31 am
by nms
Hi,

We are planning for Nagios redundancy and have decided for an active-active solution (We intend to buy an additional license later on).

At present, the setup is as follows:

NagiosXI1 - licensed having also a subinterface which will ia acting as the "vip"
NagiosXI2 - 60-day trial, having also a subinterface which is acting as the "vip"

on NagiosXI2, I would like to load everything from NagiosXI1 in order to have them in synch, so that we can try out synchronizing them before we purchase the license.

However, I don't want to restore from backup due to the fact about the license.

First, can a backup be restored from a previous version (5.4.13) to a 5.6.1 version? As I tried this but got some errors (ssl from httpd conf error etc - couldn't start nagios after restore, so my thoughts were due to an incorrect version.

If we decide to just copy the cfg files, starting from the main, etc folder, followed by host and services files. Is this possible?
Do we need to have the same versions? (i intend to install a 5.4.13 version before restoring anything).

ideally, after I sort this out, a daily copy of cfg files is performed, followed by verification and restart of nagios (to be done via script)

Rgds,

Matthew

Re: NagiosXI synchronization

Posted: Fri May 10, 2019 3:55 pm
by benjaminsmith
Hi Mathew,
First, can a backup be restored from a previous version (5.4.13) to a 5.6.1 version? As I tried this but got some errors (ssl from httpd conf error etc - couldn't start nagios after restore, so my thoughts were due to an incorrect version.
The version your that your are restoring to needs to match the version that the backup was taken from. You can download any version from the following page:
https://assets.nagios.com/downloads/nag ... rsions.php
If we decide to just copy the cfg files, starting from the main, etc folder, followed by host and services files. Is this possible?
Do we need to have the same versions? (i intend to install a 5.4.13 version before restoring anything).
The configuration files are used by Nagios Core and they rarely change. That said, it's probably a good practice to keep the versions the same.

By the way, with every purchase we offer 3 separate activation of XI licenses. One for production, one for testing, and one for high availability. We always recommend upgrading on a test server first before making changes to the production server.

Nagios License Entitlements
https://support.nagios.com/kb/article.php?id=145

Re: NagiosXI synchronization

Posted: Mon May 13, 2019 10:37 am
by nms
Thanks, Benjamin.

I know about the 3 license types, however since we're after an Active-Active solution, we need to purchase another license.
However, as specified I first need to fully synchronize the secondary server.

Can I just copy all cfg that contains the grouping, contacts, etc followed by the host and services cfg files or else I can just restore from backup fr the first time?

Rgds,

Re: NagiosXI synchronization

Posted: Mon May 13, 2019 1:12 pm
by benjaminsmith
Hi @nms,
Can I just copy all cfg that contains the grouping, contacts, etc followed by the host and services cfg files or else I can just restore from backup fr the first time?
I would recommended restoring from a backup.

Re: NagiosXI synchronization

Posted: Mon May 13, 2019 2:14 pm
by nms
Thanks,

Restoring from backup will probably also apply the license no?

Can i then switch to trial again after?

What is the difference between pushing cfg file and restoring from backup (mgmt question :))

Rgds,

Re: NagiosXI synchronization

Posted: Mon May 13, 2019 2:42 pm
by benjaminsmith
Hi @nms,
What is the difference between pushing cfg file and restoring from backup
The backup is going to contain the whole installation - object configuration files, databases, performance data, logs files, program configuration files. You'll find more details on page 1 of the following guide:

Backing Up And Restoring Your Nagios XI System

Also, the restore will contain the license information, I would reach out to [email protected] to see if it's possible to revert the trial license.