Installation types and modifications of installs for DevOps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Installation types and modifications of installs for DevOps

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

Re: Installation types and modifications of installs for Dev

Post 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.
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!
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: Installation types and modifications of installs for Dev

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installation types and modifications of installs for Dev

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked