Nagios xi installation error "pnp"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mannu1979
Posts: 1
Joined: Mon Sep 19, 2011 7:09 pm

Nagios xi installation error "pnp"

Post by mannu1979 »

I am trying to install nagios xi(manual install) on CENTOS 5.6 (32bit) but i am getting following error when the installation program is configuring PNP:

/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp
/usr/bin/install: `/usr/local/nagios/etc/pnp' exists but is not a directory
make[1]: *** [install-config] Error 1
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-0.4.14/sample-config'
make: *** [install-config] Error 2
cd ./scripts && make install-init
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-0.4.14/scripts'
/usr/bin/install -c -m 755 -o root -g root -d /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root rc.npcd /etc/rc.d/init.d/npcd
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-0.4.14/scripts'
/tmp/nagiosxi/subcomponents/pnp
PNP-POST
cp: accessing `/usr/local/nagios/etc/pnp/rra.cfg': Not a directory
cp: accessing `/usr/local/nagios/etc/pnp/process_perfdata.cfg': Not a directory
mkdir: cannot create directory `/usr/local/nagios/var/stats': File exists
ERROR: PNP install appears to have failed - exiting. Missing file = /usr/local/nagios/etc/pnp/process_perfdata.cfg
ERROR: Subcomponent 'pnp' installation failed - exiting.
Subcomponents installation failed - exiting

What should i do to get rid of this error.
yasharaj
Posts: 6
Joined: Mon Oct 03, 2011 4:57 am

Re: Nagios xi installation error "pnp"

Post by yasharaj »

Hi,
Have you got any solution for this? I am also facing the same propblem.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios xi installation error "pnp"

Post by lmiltchev »

Did you try to install Nagios XI on a "clean" system? Was Gnome installed?
Be sure to check out our Knowledgebase for helpful articles and solutions!
yasharaj
Posts: 6
Joined: Mon Oct 03, 2011 4:57 am

Re: Nagios xi installation error "pnp"

Post by yasharaj »

Yes. It was clean install. Gnome is also installed.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios xi installation error "pnp"

Post by mguthrie »

Are you running the installer from the /tmp/nagiosxi directory and are you running this as the root user?
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Nagios xi installation error "pnp"

Post by aap »

Has anybody been able to resolve this issue. I am experiencing the same problem installing Nagios XI on RHEL 5. The install is running from the /tmp/nagiosxi directory and running as root. Please assist.
yasharaj
Posts: 6
Joined: Mon Oct 03, 2011 4:57 am

Re: Nagios xi installation error "pnp"

Post by yasharaj »

Yes
aap
Posts: 180
Joined: Wed Oct 12, 2011 4:01 am

Re: Nagios xi installation error "pnp"

Post by aap »

Please can you share what the resolution was?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios xi installation error "pnp"

Post by mguthrie »

The installer should be creating a file /tmp/nagiosxi/install.log. Can you guys post the log so we can see where the problem is occurring?
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Nagios xi installation error "pnp"

Post by cwscribner »

Just some possibly helpful notes. I encountered errors much like this during a recent install. Here are a few things to do/check
  1. Be sure gcc is installed

    Code: Select all

    yum install gcc
    . Otherwise you can't compile anything.
  • In /usr/local/nagios/etc/, make sure that there isn't a file called "pnp" created already. Somehow, this happened to me and that's why you get the "Not a directory" error. If it is created, just do

    Code: Select all

    rm -rf /usr/local/nagios/etc/pnp
  • Uninstall mod_perl

    Code: Select all

    yum remove mod_perl
    then rerun the install script
I would do them in the order I've listed them. Not sure if the order is relevant but it fixed my install issues.
Locked