Nagios Installation failed on Linux server
Nagios Installation failed on Linux server
Hi,
we are trying to install Nagios XI on Linux server which is in inside the firewall. However Nagios installation is failing on server with few errors.
Attached the file for errors which we are getting while installing.
Is there any way to copy all required repositories on server to install nagios XI?
we are trying to install Nagios XI on Linux server which is in inside the firewall. However Nagios installation is failing on server with few errors.
Attached the file for errors which we are getting while installing.
Is there any way to copy all required repositories on server to install nagios XI?
You do not have the required permissions to view the files attached to this post.
Re: Nagios Installation failed on Linux server
Does this server have internet access or access to the external repositories? It kind of looks like it doesn't but we can check with these commands:
Are you using the offline installer from here or the source install?
https://repo.nagios.com/?repo=offline
Code: Select all
nmap -Pn -p80,443 repo.nagios.com
nmap -Pn -p80,443 mirrors.fedoraproject.orghttps://repo.nagios.com/?repo=offline
Re: Nagios Installation failed on Linux server
Hi ssax,
Please find below output for nmap.
[root@lxappnagistgs05 ~]# nmap -Pn -p80,443 repo.nagios.com Starting Nmap 7.70 ( https://nmap.org ) at 2020-10-29 08:09 EDT Nmap scan report for repo.nagios.com (72.14.181.71) Host is up (0.00018s latency). Other addresses for repo.nagios.com (not scanned): 2600
:f03c:91ff:fedf:b821 rDNS record for 72.14.181.71: assets.nagios.com PORT STATE SERVICE 80/tcp closed http 443/tcp closed https Nmap done: 1 IP address (1 host up) scanned in 0.39 seconds [root@lxappnagistgs05 ~]# nmap -Pn -p80,443 mirrors.fedoraproject.org Starting Nmap 7.70 ( https://nmap.org ) at 2020-10-29 08:09 EDT Nmap scan report for mirrors.fedoraproject.org (152.19.134.142) Host is up (0.00024s latency). Other addresses for mirrors.fedoraproject.org (not scanned): 152.19.134.198 38.145.60.21 140.211.169.196 67.219.144.68 209.132.190.2 8.43.85.67 140.211.169.206 38.145.60.20 8.43.85.73 2620:52:3:1:dead:beef:cafe:fed7 2605:bc80
600:dead:beef:cafe:fed9 2610:28
3001:dead:beef:cafe:fed3 2620:52:3:1:dead:beef:cafe:fed6 2605:bc80
600:dead:beef:cafe:feda 2604
fe00:0:dead:beef:cafe:fed1 rDNS record for 152.19.134.142: vm3.fedora.ibiblio.org PORT STATE SERVICE 80/tcp closed http 443/tcp closed https Nmap done: 1 IP address (1 host up) scanned in 0.60 seconds [root@lxappnagistgs05 ~]#
Also we have followed below steps to install Nagios XI on RHEL 8.2.
Manual Download
Alternatively, you can install Nagios XI by issuing the following commands in your terminal session:
cd /tmp
wget https://assets.nagios.com/downloads/nag ... est.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./fullinstall
Is it required external repository access if we use offline installer from 'https://repo.nagios.com/?repo=offline'?
Please find below output for nmap.
[root@lxappnagistgs05 ~]# nmap -Pn -p80,443 repo.nagios.com Starting Nmap 7.70 ( https://nmap.org ) at 2020-10-29 08:09 EDT Nmap scan report for repo.nagios.com (72.14.181.71) Host is up (0.00018s latency). Other addresses for repo.nagios.com (not scanned): 2600
Also we have followed below steps to install Nagios XI on RHEL 8.2.
Manual Download
Alternatively, you can install Nagios XI by issuing the following commands in your terminal session:
cd /tmp
wget https://assets.nagios.com/downloads/nag ... est.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./fullinstall
Is it required external repository access if we use offline installer from 'https://repo.nagios.com/?repo=offline'?
Re: Nagios Installation failed on Linux server
They are showing closed which is weird, usually they would say filtered if they were blocked. Do you have a web gateway/proxy/security device or anything that could be interfering with it? Please PM me the output of these commands:
If you use the offline install the system still needs access to the repositories to download packages (whether mounted via DB or by setting up your own local repositories that mirror those that it does have access to).
Code: Select all
ping 72.14.181.71
ip a
curl -k -L -v 'https://repo.nagios.com'
Re: Nagios Installation failed on Linux server
Try doing this and then run the ./fullinstall again:
If that doesn't work, send the output of this command:
Code: Select all
sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-*-rpms"Code: Select all
yum repolist allRe: Nagios Installation failed on Linux server
Thanks Ssax,
Ran the “sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-*-rpms” command on server and started the installation again. However 2 errors got resolved and below three error occurred.
Error:
Problem 1: cannot install both graphviz-gd-2.40.1-40.el8.x86_64 and graphviz-g-2.40.1-39.el8.x86_64
- conflicting requests
Problem 2: package nagiosxi-nxti-5.7.2-1.el8.x86_64 conflicts with snmptt provded by snmptt-1.4-0.1.el8.noarch
- conflicting requests
Problem 3: package nagiosxi-shellinabox-5.7.2-1.el8.x86_64 conflicts with shelinabox provided by shellinabox-2.20-9.el8.x86_64
- conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or'--skip-broken' to skip uninstallable packages or '--nobest' to use not only bet candidate packages)
We have moved below files to temp directory and started the installation again.
graphviz-g-2.40.1-39.el8.x86_64
snmptt-1.4-0.1.el8.noarch
shellinabox-2.20-9.el8.x86_64
Installation got completed but Nagios services are not running on the server.
urw-base35-gothic-fonts-20170801-10.el8.noarch urw-base35-nimbus-mono-ps-fonts-20170801-10.el8.noarch
urw-base35-nimbus-roman-fonts-20170801-10.el8.noarch urw-base35-nimbus-sans-fonts-20170801-10.el8.noarch
urw-base35-p052-fonts-20170801-10.el8.noarch urw-base35-standard-symbols-ps-fonts-20170801-10.el8.noarch
urw-base35-z003-fonts-20170801-10.el8.noarch utf8proc-2.1.1-5.module+el8.0.0+3900+919b6753.x86_64
xorg-x11-font-utils-1:7.5-40.el8.x86_64 xorg-x11-fonts-ISO8859-1-100dpi-7.5-19.el8.noarch
xorg-x11-server-utils-7.7-27.el8.x86_64 xz-devel-5.2.4-3.el8.x86_64
zlib-devel-1.2.11-16.el8_2.x86_64
Complete!
[root@lxappnagistgs06 nagiosxi]#
We tried to start the service but below mentioned occurred when we tried to Nagios service.
[root@lxappnagistgs06 nagiosxi]# systemctl start nagios
Job for nagios.service failed because the control process exited with error code.
See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@lxappnagistgs06 nagiosxi]# journalctl -xe
Nov 05 06:46:18 lxappnagistgs06 systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Ple>
Nov 05 06:46:18 lxappnagistgs06 systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Ple>
Nov 05 06:46:27 lxappnagistgs06 systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Ple>
Nov 05 06:46:27 lxappnagistgs06 systemd[1]: Starting Nagios Core 4.4.6...
-- Subject: Unit nagios.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit nagios.service has begun starting up.
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Nagios Core 4.4.6
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributo>
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Copyright (c) 1999-2009 Ethan Galstad
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Last Modified: 2020-04-28
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: License: GPL
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Website: https://www.nagios.org
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Reading configuration data...
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Read main config file okay...
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for >
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Error processing object config files!
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: ***> One or more problems was encountered while processing the config files...
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Check your configuration file(s) to ensure that they contain valid
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: directives and data definitions. If you are upgrading from a previous
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: version of Nagios, you should be aware that some variables/definitions
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: may have been removed or modified in this version. Make sure to read
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: the HTML documentation regarding the config files, as well as the
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: 'Whats New' section to find out what has changed.
Nov 05 06:46:27 lxappnagistgs06 systemd[1]: nagios.service: Control process exited, code=exited status=1
Nov 05 06:46:27 lxappnagistgs06 systemd[1]: nagios.service: Failed with result 'exit-code'.
Nov 05 06:46:27 lxappnagistgs06 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.
lines 1377-1412/1412 (END)
Below is the xi-install.log from the server.
[root@lxappnagistgs06 tmp]# cat 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 0x7f9168826f98>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826978>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826160>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826940>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826358>: Failed to establish a new connection: [Errno 111] Connection refused',)': /simple/pymssql/
Could not find a version that satisfies the requirement pymssql<3 (from versions: )
No matching distribution found for pymssql<3
[root@lxappnagistgs06 tmp]#
Ran the “sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-*-rpms” command on server and started the installation again. However 2 errors got resolved and below three error occurred.
Error:
Problem 1: cannot install both graphviz-gd-2.40.1-40.el8.x86_64 and graphviz-g-2.40.1-39.el8.x86_64
- conflicting requests
Problem 2: package nagiosxi-nxti-5.7.2-1.el8.x86_64 conflicts with snmptt provded by snmptt-1.4-0.1.el8.noarch
- conflicting requests
Problem 3: package nagiosxi-shellinabox-5.7.2-1.el8.x86_64 conflicts with shelinabox provided by shellinabox-2.20-9.el8.x86_64
- conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or'--skip-broken' to skip uninstallable packages or '--nobest' to use not only bet candidate packages)
We have moved below files to temp directory and started the installation again.
graphviz-g-2.40.1-39.el8.x86_64
snmptt-1.4-0.1.el8.noarch
shellinabox-2.20-9.el8.x86_64
Installation got completed but Nagios services are not running on the server.
urw-base35-gothic-fonts-20170801-10.el8.noarch urw-base35-nimbus-mono-ps-fonts-20170801-10.el8.noarch
urw-base35-nimbus-roman-fonts-20170801-10.el8.noarch urw-base35-nimbus-sans-fonts-20170801-10.el8.noarch
urw-base35-p052-fonts-20170801-10.el8.noarch urw-base35-standard-symbols-ps-fonts-20170801-10.el8.noarch
urw-base35-z003-fonts-20170801-10.el8.noarch utf8proc-2.1.1-5.module+el8.0.0+3900+919b6753.x86_64
xorg-x11-font-utils-1:7.5-40.el8.x86_64 xorg-x11-fonts-ISO8859-1-100dpi-7.5-19.el8.noarch
xorg-x11-server-utils-7.7-27.el8.x86_64 xz-devel-5.2.4-3.el8.x86_64
zlib-devel-1.2.11-16.el8_2.x86_64
Complete!
[root@lxappnagistgs06 nagiosxi]#
We tried to start the service but below mentioned occurred when we tried to Nagios service.
[root@lxappnagistgs06 nagiosxi]# systemctl start nagios
Job for nagios.service failed because the control process exited with error code.
See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@lxappnagistgs06 nagiosxi]# journalctl -xe
Nov 05 06:46:18 lxappnagistgs06 systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Ple>
Nov 05 06:46:18 lxappnagistgs06 systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Ple>
Nov 05 06:46:27 lxappnagistgs06 systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Ple>
Nov 05 06:46:27 lxappnagistgs06 systemd[1]: Starting Nagios Core 4.4.6...
-- Subject: Unit nagios.service has begun start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit nagios.service has begun starting up.
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Nagios Core 4.4.6
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributo>
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Copyright (c) 1999-2009 Ethan Galstad
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Last Modified: 2020-04-28
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: License: GPL
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Website: https://www.nagios.org
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Reading configuration data...
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Read main config file okay...
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for >
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Error processing object config files!
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: ***> One or more problems was encountered while processing the config files...
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: Check your configuration file(s) to ensure that they contain valid
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: directives and data definitions. If you are upgrading from a previous
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: version of Nagios, you should be aware that some variables/definitions
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: may have been removed or modified in this version. Make sure to read
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: the HTML documentation regarding the config files, as well as the
Nov 05 06:46:27 lxappnagistgs06 nagios[30248]: 'Whats New' section to find out what has changed.
Nov 05 06:46:27 lxappnagistgs06 systemd[1]: nagios.service: Control process exited, code=exited status=1
Nov 05 06:46:27 lxappnagistgs06 systemd[1]: nagios.service: Failed with result 'exit-code'.
Nov 05 06:46:27 lxappnagistgs06 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.
lines 1377-1412/1412 (END)
Below is the xi-install.log from the server.
[root@lxappnagistgs06 tmp]# cat 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 0x7f9168826f98>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826978>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826160>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826940>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826358>: Failed to establish a new connection: [Errno 111] Connection refused',)': /simple/pymssql/
Could not find a version that satisfies the requirement pymssql<3 (from versions: )
No matching distribution found for pymssql<3
[root@lxappnagistgs06 tmp]#
Re: Nagios Installation failed on Linux server
Your system is trying to connect through pip to download the packages but it doesn't have access, this is why you should run the offline installer otherwise you'll need to grant access through the FW or manually install them.
Here are the domains it needs access to TCP 80/443:
You can download this file:
Transfer it to the server and install it like this:
Here are the domains it needs access to TCP 80/443:
Code: Select all
assets.nagios.com
api.nagios.com
repo.nagios.com
pypi.org
pypi.python.org
files.pythonhosted.orgCode: Select all
https://files.pythonhosted.org/packages/fe/aa/59c7c8a2cf1ef0726cd4c64bff7072147db8cbb6b4379fb0c3d7c67331b9/pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whlCode: Select all
pip3 install /PATH/TO/YOUR/pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whlRe: Nagios Installation failed on Linux server
Hi Ssax,
We are using offline installer ‘nagiosxi-5.7.2-1.el8.x86_64.tar.gz’ which is downloaded from ‘https://repo.nagios.com/?repo=offline’ for installation.
Installed ‘pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whl’ package.
[root@ lxappnagistgs06 tmp]# pip3.6 install /tmp/pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whl WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3.6 install --user` instead. Processing ./pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whl Installing collected packages: pymssql Successfully installed pymssql-2.1.5
However Nagios service is still not starting on server and getting below mentioned error.
[root@lxappnagistgs06 ~]# systemctl start nagios Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@lxappnagistgs06 ~]# journalctl -xe Nov 06 09:05:30 lxappnagistgs06 systemd[1]: Starting Nagios Core 4.4.6... -- Subject: Unit nagios.service has begun start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit nagios.service has begun starting up. Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Nagios Core 4.4.6 Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Copyright (c) 1999-2009 Ethan Galstad Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Last Modified: 2020-04-28 Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: License: GPL Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Website: https://www.nagios.org Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Reading configuration data... Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Read main config file okay... Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for rea> Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Error processing object config files! Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: ***> One or more problems was encountered while processing the config files... Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Check your configuration file(s) to ensure that they contain valid Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: directives and data definitions. If you are upgrading from a previous Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: version of Nagios, you should be aware that some variables/definitions Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: may have been removed or modified in this version. Make sure to read Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: the HTML documentation regarding the config files, as well as the Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: 'Whats New' section to find out what has changed. Nov 06 09:05:30 lxappnagistgs06 systemd[1]: nagios.service: Control process exited, code=exited status=1 Nov 06 09:05:30 lxappnagistgs06 systemd[1]: nagios.service: Failed with result 'exit-code'. Nov 06 09:05:30 lxappnagistgs06 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. lines 2717-2749/2749 (END)
Below errors found in xi-install.log.
[root@lxappnagistgs06 tmp]# cat 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 0x7f9168826f98>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826978>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826160>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826940>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826358>: Failed to establish a new connection: [Errno 111] Connection refused',)': /simple/pymssql/ Could not find a version that satisfies the requirement pymssql<3 (from versions: ) No matching distribution found for pymssql<3
We are using offline installer ‘nagiosxi-5.7.2-1.el8.x86_64.tar.gz’ which is downloaded from ‘https://repo.nagios.com/?repo=offline’ for installation.
Installed ‘pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whl’ package.
[root@ lxappnagistgs06 tmp]# pip3.6 install /tmp/pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whl WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3.6 install --user` instead. Processing ./pymssql-2.1.5-cp36-cp36m-manylinux1_x86_64.whl Installing collected packages: pymssql Successfully installed pymssql-2.1.5
However Nagios service is still not starting on server and getting below mentioned error.
[root@lxappnagistgs06 ~]# systemctl start nagios Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@lxappnagistgs06 ~]# journalctl -xe Nov 06 09:05:30 lxappnagistgs06 systemd[1]: Starting Nagios Core 4.4.6... -- Subject: Unit nagios.service has begun start-up -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- Unit nagios.service has begun starting up. Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Nagios Core 4.4.6 Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Copyright (c) 1999-2009 Ethan Galstad Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Last Modified: 2020-04-28 Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: License: GPL Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Website: https://www.nagios.org Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Reading configuration data... Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Read main config file okay... Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for rea> Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Error processing object config files! Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: ***> One or more problems was encountered while processing the config files... Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: Check your configuration file(s) to ensure that they contain valid Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: directives and data definitions. If you are upgrading from a previous Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: version of Nagios, you should be aware that some variables/definitions Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: may have been removed or modified in this version. Make sure to read Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: the HTML documentation regarding the config files, as well as the Nov 06 09:05:30 lxappnagistgs06 nagios[33353]: 'Whats New' section to find out what has changed. Nov 06 09:05:30 lxappnagistgs06 systemd[1]: nagios.service: Control process exited, code=exited status=1 Nov 06 09:05:30 lxappnagistgs06 systemd[1]: nagios.service: Failed with result 'exit-code'. Nov 06 09:05:30 lxappnagistgs06 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. lines 2717-2749/2749 (END)
Below errors found in xi-install.log.
[root@lxappnagistgs06 tmp]# cat 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 0x7f9168826f98>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826978>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826160>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826940>: Failed to establish a new connection: [Errno 111] Connection refused',)': /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 0x7f9168826358>: Failed to establish a new connection: [Errno 111] Connection refused',)': /simple/pymssql/ Could not find a version that satisfies the requirement pymssql<3 (from versions: ) No matching distribution found for pymssql<3
Re: Nagios Installation failed on Linux server
You will need to re-run the fullinstall after doing that, it is not installed properly so you'll need to re-run it.
You can also do this to get more information:
Download this file to your /tmp directory of your XI server:
https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz
Then as root, run these commands on your XI server:
Then send us the full output of all the commands if it fails.
You can also do this to get more information:
Download this file to your /tmp directory of your XI server:
https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz
Then as root, run these commands on your XI server:
Code: Select all
cd /tmp
rm -rf nagiosxi
tar zxf nagiosxi-5.7.2-1.el8.x86_64.tar.gz
mv nagiosxi nag
cd nag
rpm2cpio nagiosxi-5.7.2-1.el8.x86_64.rpm | cpio -idmv
cd tmp/nagiosxi
./rpminstall