ERROR: Nagios Core install appears to have failed - exiting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

ERROR: Nagios Core install appears to have failed - exiting

Post by bongmendoza »

We're trying to eval Nagios XI and this is my 3rd attempt and it is still failing on the same spot...

I'm running on CENTOS 6, installed MySQL and APACHE. It seems that it's looking for nagios which i'm not sure if this has to be installed firsts:

I did the ./fullinstall and below is the error... Help!!!

./post-install: line 18: popd: directory stack empty
mkdir: cannot create directory `/usr/local/nagios/var/spool/perfdata': No such file or directory
mkdir: cannot create directory `/usr/local/nagios/var/spool/xidpe': No such file or directory
chown: cannot access `/usr/local/nagios/var/spool/xidpe': No such file or directory
chmod: cannot access `/usr/local/nagios/etc/hosts/*.cfg': No such file or directory
chmod: cannot access `/usr/local/nagios/etc/services/*.cfg': No such file or directory
Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for DEV-NAGIOSXI
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
ERROR: Nagios Core install appears to have failed - exiting. Missing file = /usr/local/nagios/bin/nagios
ERROR: Subcomponent 'nagioscore' installation failed - exiting.
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'
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ERROR: Nagios Core install appears to have failed - exit

Post by lmiltchev »

We had a problem with CentOS 6 because of the changes made in some repos. You can try solving your problem, following the steps described here:

http://support.nagios.com/wiki/index.ph ... n_Problems

BTW, Nagios XI 2011R1.8 is out and you *shouldn't* have any issues installing it on CentOS 6.

http://assets.nagios.com/downloads/nagi ... 1.8.tar.gz
Be sure to check out our Knowledgebase for helpful articles and solutions!
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

Re: ERROR: Nagios Core install appears to have failed - exit

Post by bongmendoza »

I'm still having the same error with the new release:

Am I missing something? It's looking for nagios in /usr/local/nagios/bin... does it get installed with Nagios XI?

=========ERROR==========================================
./post-install: line 18: popd: directory stack empty
mkdir: cannot create directory `/usr/local/nagios/var/spool/perfdata': No such file or directory
mkdir: cannot create directory `/usr/local/nagios/var/spool/xidpe': No such file or directory
chown: cannot access `/usr/local/nagios/var/spool/xidpe': No such file or directory
chmod: cannot access `/usr/local/nagios/etc/hosts/*.cfg': No such file or directory
chmod: cannot access `/usr/local/nagios/etc/services/*.cfg': No such file or directory
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
ERROR: Nagios Core install appears to have failed - exiting. Missing file = /usr/local/nagios/bin/nagios
ERROR: Subcomponent 'nagioscore' installation failed - exiting.
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'
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ERROR: Nagios Core install appears to have failed - exit

Post by lmiltchev »

Is this a "clean install"? Do you have Gnome installed? Are you behind a proxy?
Be sure to check out our Knowledgebase for helpful articles and solutions!
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

Re: ERROR: Nagios Core install appears to have failed - exit

Post by bongmendoza »

yes. this is a clean install.
no. i dont have gnome installed
no. I am not behind a proxy

I installed CentOS 6, installed MySQL, Installed Apache, tar xi-2011r1.8.tar.gz, then ran ./fullinstall

when does the nagios component (usr/local/nagios/....) gets installed?
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

Re: ERROR: Nagios Core install appears to have failed - exit

Post by bongmendoza »

so running ./install under nagioscore (with -x) this is the error/fail:

===============================================================
./post-install: line 18: popd: directory stack empty
chmod: cannot access `/usr/local/nagios/etc/hosts/*.cfg': No such file or directory
chmod: cannot access `/usr/local/nagios/etc/services/*.cfg': No such file or directory
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
+ for f in /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg /usr/local/nagios/etc/cgi.cfg /usr/local/nagios/etc/import/xicommands.cfg
+ '[' '!' -f /usr/local/nagios/bin/nagios ']'+ echo 'ERROR: Nagios Core install appears to have failed - exiting. Missing file = /usr/local/nagios/bin/nagios'
ERROR: Nagios Core install appears to have failed - exiting. Missing file = /usr/local/nagios/bin/nagios
+ exit 1
===============================================================

It looks like it's unable to create /bin and put the nagios file
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

Re: ERROR: Nagios Core install appears to have failed - exit

Post by bongmendoza »

any other suggestions?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ERROR: Nagios Core install appears to have failed - exit

Post by lmiltchev »

Remove all files from your "/tmp" directory, download Nagios XI again, "untar" it, move to the newly created "nagiosxi" directory and run "./fullinstall". If it fails again, post the errors found in the "install.log" file.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

Re: ERROR: Nagios Core install appears to have failed - exit

Post by bongmendoza »

I've attached the install.log

Basically, same error....
You do not have the required permissions to view the files attached to this post.
bongmendoza
Posts: 21
Joined: Fri Oct 28, 2011 12:12 pm

Re: ERROR: Nagios Core install appears to have failed - exit

Post by bongmendoza »

install was able to pass the error after I installed C compiler (yum -y install gcc).

But now, I get this error: (I also attached the install.log)

/tmp/nagiosxi/subcomponents/pnp
PNP-POST
cp: cannot stat `/usr/local/nagios/etc/pnp/rra.cfg-sample': No such file or directory
cp: cannot stat `/usr/local/nagios/etc/pnp/process_perfdata.cfg-sample': No such file or 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
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
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
The script that failed was: './A-subcomponent
install.log
You do not have the required permissions to view the files attached to this post.
Locked