Page 1 of 1

Installation types and modifications of installs for DevOps

Posted: Thu May 30, 2019 8:25 pm
by dfmco
I have a server that we thought was built using the RPM method but it does not have the RPM installed for NagiosXI but does seem to have all of the other RPMs installed.

[root@nortx-jack-netmon-pri ~]# rpm -qa | grep "nagios"
nagiosxi-nsca-5.6.2-2.el7.x86_64
nagiosxi-mrtg-5.6.2-2.el7.x86_64
nagiosxi-nagiosplugins-5.6.2-2.el7.x86_64
nagiosxi-nagiosmobile-5.6.2-2.el7.x86_64
nagiosxi-nagiosql-5-4.13.el7.x86_64
nagiosxi-nagvis-5.6.2-2.el7.x86_64
nagiosxi-pnp-5.6.2-2.el7.x86_64
nagiosxi-nrpe-5.6.2-2.el7.x86_64
nagios-repo-7-3.el7.noarch
nagiosxi-nagioscore-5.6.2-2.el7.x86_64
nagiosxi-wkhtmltox-5.6.2-2.el7.x86_64
nagiosxi-ndoutils-5.6.2-2.el7.x86_64
nagiosxi-nrds-5.6.2-2.el7.x86_64
nagiosxi-ajaxterm-5-4.13.el7.x86_64
nagiosxi-wmic-5.6.2-2.el7.x86_64

How can I determine the installation method of a Nagios XI server and how can I change the install method? Specifically I have the following situations:

Upgrade the above server that seems to be missing the nagiosxi rpm but is currently functioning.

Convert a server from a ./install setup to rpm setup so it can be migrated into automation.

Convert a server from a source install to rpm for the same reason.

If a conversion is not possible, can a new server be built and can the existing ./install or source install information be backed up and restored to an RPM install? I want to make sure I cover any pitfalls of attempting this if it is not possible or requires preparations that may be undocumented. I was unable to find any documents that covered the procedures I am attempting.

Re: Installation types and modifications of installs for Dev

Posted: Fri May 31, 2019 11:38 am
by benjaminsmith
Hello @dfmco,

If you want to use yum to manage updates, the most straightforward path would be to install Nagios XI using the Nagios Repos and then perform a migration from your current server.

There can be slight delay between the current update ( via the web interface) and what's available from the Nagios repositories ( currently 5.6.2).

When migrating system you want to keep the version number the same, please refer to the guide below.

Backing Up and Restoring Nagios XI

Please let me know if you have any other questions.

Re: Installation types and modifications of installs for Dev

Posted: Fri May 31, 2019 5:44 pm
by dfmco
So there are no known issues backing up a source install and restoring to a RPM install? What about file paths? If that is the case that is really good news.

For my other question, how can you tell what type of install you have. Per the original post, I have one that seems to be using RPM but there is no nagiosxi rpm installed.

Re: Installation types and modifications of installs for Dev

Posted: Mon Jun 03, 2019 9:02 am
by lmiltchev
So there are no known issues backing up a source install and restoring to a RPM install? What about file paths?
The file paths would be the same on a source and RPM installs, so this shouldn't be a problem.
For my other question, how can you tell what type of install you have. Per the original post, I have one that seems to be using RPM but there is no nagiosxi rpm installed.
It seems like you had a RPM install, but it probably didn't finish successfully as you are missing the nagiosxi package... Here's an example of the packages you need to have:

Code: Select all

nagiosxi-wmic-5.6.2-2.el7.x86_64
nagiosxi-ndoutils-5.6.2-2.el7.x86_64
nagiosxi-nrds-5.6.2-2.el7.x86_64
nagiosxi-mrtg-5.6.2-2.el7.x86_64
nagiosxi-shellinabox-5.6.2-2.el7.x86_64
nagiosxi-nxti-5.6.2-2.el7.x86_64
nagiosxi-nsca-5.6.2-2.el7.x86_64
nagiosxi-nagiosmobile-5.6.2-2.el7.x86_64
nagiosxi-5.6.2-2.el7.x86_64
nagiosxi-nagioscore-5.6.2-2.el7.x86_64
nagiosxi-wkhtmltox-5.6.2-2.el7.x86_64
nagiosxi-nrpe-5.6.2-2.el7.x86_64
nagios-repo-7-3.el7.noarch
nagiosxi-nagvis-5.6.2-2.el7.x86_64
nagiosxi-nagiosplugins-5.6.2-2.el7.x86_64
nagiosxi-pnp-5.6.2-2.el7.x86_64
You could look into the xi-sys.cfg file in order to find out if this was an RPM install.

Example:

Code: Select all

grep -i rpm /usr/local/nagiosxi/var/xi-sys.cfg
RPMINSTALL='1'
Hope this helps.