Page 1 of 1
PNP install failed
Posted: Tue Dec 20, 2011 1:04 pm
by will
Hello,
I'm on a RHEL 32 bit machine and when I run the fullinstall script, I get the following:
ERROR: PNP install appears to have failed - exiting. Missing file = /usr/local/nagios/bin/npcd
/tmp/nagiosxi/subcomponents
ERROR: Subcomponent 'pnp' installation failed - exiting.
/tmp/nagiosxi
Subcomponents installation failed - exiting
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
The script that failed was: './A-subcomponents'
You have new mail in /var/spool/mail/root
[root@ip-10-169-61-127 nagiosxi]# ls /usr/local/nagios/etc/pnp
/usr/local/nagios/etc/pnp
Re: PNP install failed
Posted: Tue Dec 20, 2011 2:24 pm
by lmiltchev
Are you behind a proxy?
Re: PNP install failed
Posted: Tue Dec 20, 2011 2:25 pm
by scottwilkerson
Is your server behind a proxy? If not lets do this.
Remove all files from your "/tmp" directory.
Then,
Code: Select all
cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/xi-2011-latest.tar.gz
tar xzf xi-2011-latest.tar.gz
cd /tmp/nagiosxi
chmod +x ./fullinstall
./fullinstall
If it fails again, post the errors found in the "install.log" file.
Re: PNP install failed
Posted: Tue Dec 20, 2011 3:49 pm
by will
i am now seeing the following:
Do I need to register this machine? I'm using Amazon EC2. It's strange that this wasn't showing up before..?
[root@ip-10-169-61-127 nagiosxi]# less install.log
Nagios XI Installation Log
==========================
DATE: Tue Dec 20 15:47:45 EST 2011
DISTRO INFO:
RedHatEnterpriseServer
6.1
i686
THIS IS A NEW INSTALL!
INSTALLING:
full=2011R1.9
major=2011
minor=R1.9
releasedate=2011-12-13
release=209
Configuring Yum...
ERROR: unable to read system id.
Your Red Hat Installation is not registered or does not have proper entitlements.
Please register or enable entitlements at rhn.redhat.com.
Re: PNP install failed
Posted: Tue Dec 20, 2011 4:33 pm
by will
I have also tried on a centos machine.
[root@ip-10-168-74-78 nagiosxi]# uname -a
Linux ip-10-168-74-78 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 i686 i386 GNU/Linux
[root@ip-10-168-74-78 nagiosxi]# cat /etc/redhat-release
CentOS release 5.4 (Final)
I am seeing the following error:
[root@ip-10-168-74-78 nagiosxi]# ./fullinstall
========================
Nagios XI Full Installer
========================
This script will do a complete install of Nagios XI by executing all necessary sub-scripts.
IMPORTANT: This script should only be used on a 'clean' install of CentOS or RedHat. Do NOT use this on a system that has been tasked with other purposes or has an existing install of
Nagios Core. To create such a clean install you should have selected ONLY the 'Base' package in the OS installer.
Do you want to continue? [Y/n] y
Proceeding with installation...
Checking MySQL credentials...
MySQL not yet installed - that's okay.
Running './0-yum'...
Configuring Yum...
2.6.21.7-2.fc8xen is not currently supported. Please use CentOS or RHEL versions 5 or 6 instead.
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './0-yum'
[root@ip-10-168-74-78 nagiosxi]# uname -a
Linux ip-10-168-74-78 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 i686 i386 GNU/Linux
[root@ip-10-168-74-78 nagiosxi]# version
-bash: version: command not found
Re: PNP install failed
Posted: Wed Dec 21, 2011 10:39 am
by scottwilkerson
will wrote:i am now seeing the following:
...
2.6.21.7-2.fc8xen is not currently supported. Please use CentOS or RHEL versions 5 or 6 instead.
...
Do I need to register this machine? I'm using Amazon EC2. It's strange that this wasn't showing up before..?
With RHEL machines you do
http://support.nagios.com/wiki/index.ph ... ptions..22
Re: PNP install failed
Posted: Wed Dec 21, 2011 10:42 am
by scottwilkerson
will wrote:I have also tried on a centos machine.
...
[root@ip-10-168-74-78 nagiosxi]# uname -a
Linux ip-10-168-74-78 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 i686 i386 GNU/Linux
I'm not sure why it is reporting 2.6.21.7-2.fc8xen in the distribution, our install script is looking for the standard which would contain el5 or el6 at the end.
Here is a hack/workaround.
If you edit the file ./0-yum and change the following line (3):
Code: Select all
dist=$(uname -r | sed 's/.*\.\(el[0-9]\+\).*/\1/')
to
save and try to run ./fullinstall
If this is CentOS 5.4 it should work fine.
Re: PNP install failed
Posted: Wed Dec 21, 2011 10:43 am
by lmiltchev
Do I need to register this machine? I'm using Amazon EC2. It's strange that this wasn't showing up before..?
Yes, you need to register with Red Hat in order to use Nagios XI. It will not work if you don't enable entitlements.
2.6.21.7-2.fc8xen is not currently supported. Please use CentOS or RHEL versions 5 or 6 instead.
"2.6.21.7-2.fc8xen" doesn't seem to be an "official" CentOS kernel.