5.5 Installation fails at subcomponents (nagioscore/pnp)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
phamanth
Posts: 13
Joined: Tue Jan 28, 2020 10:57 am

5.5 Installation fails at subcomponents (nagioscore/pnp)

Post 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.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
phamanth
Posts: 13
Joined: Tue Jan 28, 2020 10:57 am

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

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

phamanth wrote:Unsure why it is there. I can try removing it and trying again?
Yes. This definitely shouldn't be there
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
phamanth
Posts: 13
Joined: Tue Jan 28, 2020 10:57 am

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

Post 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?
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
phamanth
Posts: 13
Joined: Tue Jan 28, 2020 10:57 am

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
phamanth
Posts: 13
Joined: Tue Jan 28, 2020 10:57 am

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

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

This really sounds like there is a problem with the proxy settings for wget

Can you PM me your /etc/wgetrc ?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked