PNP install failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
will
Posts: 5
Joined: Tue Dec 20, 2011 12:55 pm

PNP install failed

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: PNP install failed

Post by lmiltchev »

Are you behind a proxy?
Be sure to check out our Knowledgebase for helpful articles and solutions!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PNP install failed

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
will
Posts: 5
Joined: Tue Dec 20, 2011 12:55 pm

Re: PNP install failed

Post 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.
will
Posts: 5
Joined: Tue Dec 20, 2011 12:55 pm

Re: PNP install failed

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

Re: PNP install failed

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PNP install failed

Post 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

Code: Select all

dist=$"el5"
save and try to run ./fullinstall

If this is CentOS 5.4 it should work fine.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: PNP install failed

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked