5.5 Installation fails at subcomponents (nagioscore/pnp)
5.5 Installation fails at subcomponents (nagioscore/pnp)
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)
You are getting this error
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
/usr/local/bin/install: line 11: cd: ./nagioscore: No such file or directorycan you show the output of
Code: Select all
cat /usr/local/bin/installRe: 5.5 Installation fails at subcomponents (nagioscore/pnp)
this is the output of the cat:
Unsure why it is there. I can try removing it and trying again?
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)
Yes. This definitely shouldn't be therephamanth wrote:Unsure why it is there. I can try removing it and trying again?
Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)
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?
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)
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
https://support.nagios.com/kb/article.php?id=147
Code: Select all
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... failed: Connection refused.Re: 5.5 Installation fails at subcomponents (nagioscore/pnp)
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)
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.rpmRe: 5.5 Installation fails at subcomponents (nagioscore/pnp)
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.
-
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)
This really sounds like there is a problem with the proxy settings for wget
Can you PM me your /etc/wgetrc ?
Can you PM me your /etc/wgetrc ?