RHEL 8 NagiosXI Install Cannot Start

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
usaeojustice
Posts: 2
Joined: Tue May 08, 2018 12:29 pm

RHEL 8 NagiosXI Install Cannot Start

Post by usaeojustice »

Operating System: Red Hat Enterprise Linux release 8.2
Nagios XI Release: nagiosxi-5.7.2-1

Offline Install: Fail
Online Direct Install: Fail
Attached Repositories: RHEL Base, EPEL, and codeready-builder

Error:
xi-install.log: "Could not find a version that satisfies the requirement pymssql<3"
Nagios Service: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg'

Hello,

We recently attempted to install NagiosXI using the offline bundle. The install completed without any displayed errors but the Nagios Core service failed to start.

The xi-install.log (see below), reports that the server "Could not find a version that satisfies the requirement pymssql<3". Downloading third-party rpms was not included in the instruction set provided: https://repo.nagios.com/?repo=offline

We attempted a direct online install with the attached Nagios RHEL repository and the install again completed with no errors but again the Nagios Core service would not start, the xi-install.log reports the same behavior listed below. Given that the offline bundle and necessary repositories were included, what is the correct installation procedure? Or is this a known bug?

Thank You.

---

[[email protected]]# journalctl -xe
--
-- Unit nagios.service has begun starting up.
Oct 06 13:31:50 node1.local nagios[18169]: Nagios Core 4.4.6
Oct 06 13:31:50 node1.local nagios[18169]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Oct 06 13:31:50 node1.local nagios[18169]: Copyright (c) 1999-2009 Ethan Galstad
Oct 06 13:31:50 node1.local nagios[18169]: Last Modified: 2020-04-28
Oct 06 13:31:50 node1.local nagios[18169]: License: GPL
Oct 06 13:31:50 node1.local nagios[18169]: Website: https://www.nagios.org
Oct 06 13:31:50 node1.local nagios[18169]: Reading configuration data...
Oct 06 13:31:50 node1.local nagios[18169]: Read main config file okay...
Oct 06 13:31:50 node1.local nagios[18169]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for readi>
Oct 06 13:31:50 node1.local nagios[18169]: Error processing object config files!
Oct 06 13:31:50 node1.local nagios[18169]: ***> One or more problems was encountered while processing the config files...
Oct 06 13:31:50 node1.local nagios[18169]: Check your configuration file(s) to ensure that they contain valid
Oct 06 13:31:50 node1.local nagios[18169]: directives and data definitions. If you are upgrading from a previous
Oct 06 13:31:50 node1.local nagios[18169]: version of Nagios, you should be aware that some variables/definitions
Oct 06 13:31:50 node1.local nagios[18169]: may have been removed or modified in this version. Make sure to read
Oct 06 13:31:50 node1.local nagios[18169]: the HTML documentation regarding the config files, as well as the
Oct 06 13:31:50 node1.local nagios[18169]: 'Whats New' section to find out what has changed.
Oct 06 13:31:50 node1.local systemd[1]: nagios.service: Control process exited, code=exited status=1
Oct 06 13:31:50 node1.local systemd[1]: nagios.service: Failed with result 'exit-code'.
Oct 06 13:31:50 node1.local systemd[1]: Failed to start Nagios Core 4.4.6.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit nagios.service has failed.
--
-- The result is failed.
[[email protected]]#


[[email protected]]# cat /tmp/xi-install.log
MySQL not yet installed - that's okay.
WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead.
Collecting pymssql<3
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fea0d76f160>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pymssql/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fea0d76fe48>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pymssql/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fea0d76f630>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pymssql/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fea0d76f860>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pymssql/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fea0d76f048>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pymssql/
Could not find a version that satisfies the requirement pymssql<3 (from versions: )
No matching distribution found for pymssql<3
[[email protected]]#
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: RHEL 8 NagiosXI Install Cannot Start

Post by ssax »

It likely didn't install properly. Do you have the full install log so we can see everything that occurred? (please attach it if there is more than what you posted)

Download this and transfer it to your XI servers /tmp directory:

https://files.pythonhosted.org/packages ... x86_64.whl

Then run this command:

Code: Select all

pip3 install /tmp/pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whl
Then run these commands and see if it fixes the issue (send us the full output on any failure):

Download this file to your /tmp directory of your XI server again:

https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz

Then as root, run these commands on your XI server:
**** Do not run these commands on an XI system that has data you need (this is only for a fresh install with no historical data), this will delete all mysql databases ****

Code: Select all

cd /tmp
rm -rf nagiosxi
tar zxf nagiosxi-5.7.2-1.el8.x86_64.tar.gz
mv nagiosxi nagtemp
cd nagtemp
rpm2cpio nagiosxi-5.7.2-1.el8.x86_64.rpm | cpio -idmv
cd tmp/nagiosxi
rm -rf /var/lib/mysql /usr/local/nagiosxi
yum reinstall mysql-server -y
systemctl restart mysqld
./rpminstall
Send us the full output of all the commands on any failure.

Then validate the system is now installed properly by testing the web interface.
usaeojustice
Posts: 2
Joined: Tue May 08, 2018 12:29 pm

Re: RHEL 8 NagiosXI Install Cannot Start

Post by usaeojustice »

Thanks for the reply. The follow-up instructions provided was able to re-install and launch Nagios XI.

I uploaded the previous failed install log for analysis. I am still uncertain as to why Nagios XI could not start without the additional files you provided. Shouldn't that have been included in the repository package?

Thanks again,
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: RHEL 8 NagiosXI Install Cannot Start

Post by cdienger »

Glad to hear you were able to work around the problem, but the log seems to be missing a lot of information so I'm not sure what the problem could have been. Do you /tmp/nagiosxi/install.log or /tmp/rpms/nagiosxi/install.log ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked