Page 1 of 3

Nagios xi installation error "pnp"

Posted: Mon Sep 19, 2011 7:21 pm
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.

Re: Nagios xi installation error "pnp"

Posted: Mon Oct 03, 2011 5:04 am
by yasharaj
Hi,
Have you got any solution for this? I am also facing the same propblem.

Re: Nagios xi installation error "pnp"

Posted: Mon Oct 03, 2011 10:57 am
by lmiltchev
Did you try to install Nagios XI on a "clean" system? Was Gnome installed?

Re: Nagios xi installation error "pnp"

Posted: Fri Oct 07, 2011 8:18 am
by yasharaj
Yes. It was clean install. Gnome is also installed.

Re: Nagios xi installation error "pnp"

Posted: Fri Oct 07, 2011 9:46 am
by mguthrie
Are you running the installer from the /tmp/nagiosxi directory and are you running this as the root user?

Re: Nagios xi installation error "pnp"

Posted: Wed Oct 12, 2011 4:06 am
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.

Re: Nagios xi installation error "pnp"

Posted: Wed Oct 12, 2011 6:21 am
by yasharaj
Yes

Re: Nagios xi installation error "pnp"

Posted: Wed Oct 12, 2011 10:16 am
by aap
Please can you share what the resolution was?

Re: Nagios xi installation error "pnp"

Posted: Wed Oct 12, 2011 2:07 pm
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?

Re: Nagios xi installation error "pnp"

Posted: Wed Oct 12, 2011 5:48 pm
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.