Nagios xi installation error "pnp"
-
- Posts: 180
- Joined: Wed Oct 12, 2011 4:01 am
Re: Nagios xi installation error "pnp"
Thanks for rour help. I am not getting any further. Please see install log attached.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
Re: Nagios xi installation error "pnp"
Assuming you're on CentOS, try
Post the output of
Now rerun the install.
Code: Select all
yum install rrdtool
Code: Select all
ls -l /usr/local/nagios/etc/
-
- Posts: 180
- Joined: Wed Oct 12, 2011 4:01 am
Re: Nagios xi installation error "pnp"
Thanks. I am actually running RHEL5. The output of the command is below though...
-rwxrwxr-x 1 apache nagios 744 Oct 13 12:10 cgi.cfg
drwsrwsr-x 2 apache nagios 4096 Oct 12 09:48 hosts
drwsrwsr-x 2 apache nagios 4096 Oct 12 09:48 import
-rwxrwxr-x 1 apache nagios 5764 Oct 12 09:48 nagios.cfg
-rwsrwsr-x 1 apache nagios 5764 Oct 13 12:10 nagios.cfg.xi
-rwxrwxr-x 1 apache nagios 2229 Oct 13 12:11 ndo2db.cfg
-rwxrwxr-x 1 apache nagios 4723 Oct 13 12:11 ndomod.cfg
-rwsrwsr-x 1 apache nagios 3417 Oct 13 12:11 pnp
-rwxrwxr-x 1 apache nagios 210 Oct 12 09:48 resource.cfg
-rwsrwsr-x 1 apache nagios 210 Oct 13 12:10 resource.cfg.xi
drwsrwsr-x 2 apache nagios 4096 Oct 12 09:48 services
drwsrwsr-x 2 apache nagios 4096 Oct 12 09:48 static
It seems the install is looking for a pnp folder however, it seems I have a pnp file instead. Any suggestions welcome.
-rwxrwxr-x 1 apache nagios 744 Oct 13 12:10 cgi.cfg
drwsrwsr-x 2 apache nagios 4096 Oct 12 09:48 hosts
drwsrwsr-x 2 apache nagios 4096 Oct 12 09:48 import
-rwxrwxr-x 1 apache nagios 5764 Oct 12 09:48 nagios.cfg
-rwsrwsr-x 1 apache nagios 5764 Oct 13 12:10 nagios.cfg.xi
-rwxrwxr-x 1 apache nagios 2229 Oct 13 12:11 ndo2db.cfg
-rwxrwxr-x 1 apache nagios 4723 Oct 13 12:11 ndomod.cfg
-rwsrwsr-x 1 apache nagios 3417 Oct 13 12:11 pnp
-rwxrwxr-x 1 apache nagios 210 Oct 12 09:48 resource.cfg
-rwsrwsr-x 1 apache nagios 210 Oct 13 12:10 resource.cfg.xi
drwsrwsr-x 2 apache nagios 4096 Oct 12 09:48 services
drwsrwsr-x 2 apache nagios 4096 Oct 12 09:48 static
It seems the install is looking for a pnp folder however, it seems I have a pnp file instead. Any suggestions welcome.
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am
Re: Nagios xi installation error "pnp"
Usually what its looking for the pnp folder in the install directory. I would suggest you delete the install folder. Then re-untar it and run the fullinstall script again. It moves the pnp config files to their location and then if it moved them to some location that wasn't right, it won't find them again.
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
Re: Nagios xi installation error "pnp"
Could he delete the pnp file and then let the install recreate it?
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am
Re: Nagios xi installation error "pnp"
Yeah, I don't see why not.
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
- Posts: 180
- Joined: Wed Oct 12, 2011 4:01 am
Re: Nagios xi installation error "pnp"
Thank you for your help. Unfortunately, deleting the pnp file and running the install again has not worked either. The /usr/local/nagios/etc/pnp folder is not created each time the install is ran hence the messages below...
checking for rrdtool... no
checking rrdtool path ... no
configure: error: is a directory! PNP needs the Path to the rrdtool binary!
make: *** No rule to make target `all'. Stop.
make: *** No rule to make target `install'. Stop.
make: *** No rule to make target `install-config'. Stop.
make: *** No rule to make target `install-init'. Stop.
/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
cp: target `/usr/local/nagios/share/pnp/templates' is not a directory
cp: cannot create regular file `/usr/local/nagios/share/pnp/lang': No such file or 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/bin/npcd
ERROR: Subcomponent 'pnp' installation failed - exiting.
Subcomponents installation failed - exiting
Is there something wrong with the install script?
Any assistance is appreciated.
checking for rrdtool... no
checking rrdtool path ... no
configure: error: is a directory! PNP needs the Path to the rrdtool binary!
make: *** No rule to make target `all'. Stop.
make: *** No rule to make target `install'. Stop.
make: *** No rule to make target `install-config'. Stop.
make: *** No rule to make target `install-init'. Stop.
/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
cp: target `/usr/local/nagios/share/pnp/templates' is not a directory
cp: cannot create regular file `/usr/local/nagios/share/pnp/lang': No such file or 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/bin/npcd
ERROR: Subcomponent 'pnp' installation failed - exiting.
Subcomponents installation failed - exiting
Is there something wrong with the install script?
Any assistance is appreciated.
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am
Re: Nagios xi installation error "pnp"
Well, from the looks of that, it looks like rrdtool isn't install properly. Can you type
This should return a list of all packages with rrd, and then make sure there is an rrdtool in that list, then run
Code: Select all
yum search rrd
Code: Select all
yum install rrdtool
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
- Posts: 180
- Joined: Wed Oct 12, 2011 4:01 am
Re: Nagios xi installation error "pnp"
Thanks. I am starting to think that the issue I'm having is as a result of my installation being behind a proxy. I cannot seem to connect to the right repositories to install the rrdtool successfully.
Which repositories do you use? Bear in mind that I'm on RHEL5.
Again, thanks for your help.
Which repositories do you use? Bear in mind that I'm on RHEL5.
Again, thanks for your help.
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am
Re: Nagios xi installation error "pnp"
We use the EPEL and RPMforge repos.
Nicholas Scott
Former Nagios employee
Former Nagios employee