Page 1 of 2

5.5 Installation fails at subcomponents (nagioscore/pnp)

Posted: Wed Feb 12, 2020 10:59 am
by phamanth
I have been attempting to install nagios xi 5.5 but it keeps failing at A-subcomponents. Based on the log, it says that nagioscore folder does not exist. This happens even if i run the install of nagioscore subcomponent manually to completion. I am wondering if this has to do with the fact that due to company policy, I am unable to install from the /tmp/ directory so I have been trying to install it from my /home/. Any assistance would be appreciated. Thank you.

Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)

Posted: Wed Feb 12, 2020 11:07 am
by scottwilkerson
You are getting this error

Code: Select all

/usr/local/bin/install: line 11: cd: ./nagioscore: No such file or directory
I'm not sure why you have a file /usr/local/bin/install on the system that us trying to do that, did you move a file to that location?

can you show the output of

Code: Select all

cat /usr/local/bin/install

Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)

Posted: Wed Feb 12, 2020 11:25 am
by phamanth
this is the output of the cat:

Code: Select all

#!/bin/bash -e

#. ../xi-sys.cfg

echo "Installing Subcomponents..."

mkdir -p /usr/local/nagios/etc

for pkg in nagioscore nagiosplugins ndoutils pnp nrpe nsca nrdp ccm extraplugins nagiosmobile webinject sshterminal wkhtmlx mrtg; do
        # Check installer return code
        if (cd "./$pkg"; ./install); then
                echo "Subcomponent '$pkg' installed OK"
        else
                echo "ERROR: Subcomponent '$pkg' installation failed - exiting." >&2
                exit 1
        fi
done

# Post-install fixes
chown -R "$nagiosuser:$nagiosgroup" /usr/local/nagios/var/spool


Unsure why it is there. I can try removing it and trying again?

Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)

Posted: Wed Feb 12, 2020 11:38 am
by scottwilkerson
phamanth wrote:Unsure why it is there. I can try removing it and trying again?
Yes. This definitely shouldn't be there

Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)

Posted: Wed Feb 12, 2020 11:39 am
by phamanth
So, I ran the full install after removing the file and it made some progress but now I am failing at the pull for https://assets.nagios.com/downloads/nag ... x86_64.rpm

I am behind a company proxy. However, I have it set in /etc/yum.conf, /etc/wgetrc, and ~/.curlrc as well as exported as an env variable.

What might you think I am missing?

Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)

Posted: Wed Feb 12, 2020 12:45 pm
by scottwilkerson
Are you sure you have the correct setting in /etc/wgetrc as I'm seeing this which doesn't look like it is going through a proxy

Code: Select all

Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... failed: Connection refused.
https://support.nagios.com/kb/article.php?id=147

Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)

Posted: Wed Feb 12, 2020 1:35 pm
by phamanth
Yes. I did have it set correctly. I followed the link and have done all of those previously. I even tried the php-pear proxy config solution to no avail. Still failing at wkhtmltox

Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)

Posted: Wed Feb 12, 2020 1:41 pm
by scottwilkerson
can you run the following from this server and show the response

Code: Select all

wget -vvv https://assets.nagios.com/downloads/nagiosxi/packages/wkhtmltox-0.12.5.el7.x86_64.rpm

Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)

Posted: Wed Feb 12, 2020 1:44 pm
by phamanth

Code: Select all

wget -vvv https://assets.nagios.com/downloads/nagiosxi/packages/wkhtmltox-0.12.5.el7.x86_64.rpm
--2020-02-12 10:43:07--  https://assets.nagios.com/downloads/nagiosxi/packages/wkhtmltox-0.12.5.el7.x86_64.rpm
Resolving assets.nagios.com (assets.nagios.com)... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... failed: Connection refused.
Connecting to assets.nagios.com (assets.nagios.com)|2600:3c00::f03c:91ff:fedf:b821|:443... failed: Network is unreachable.
same output. I was successful with a curl -O https://assets.nagios.com/downloads/nag ... x86_64.rpm if that gives any insight.

Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)

Posted: Wed Feb 12, 2020 1:54 pm
by scottwilkerson
This really sounds like there is a problem with the proxy settings for wget

Can you PM me your /etc/wgetrc ?