Page 1 of 2
ERROR: Nagios Core install appears to have failed - exiting
Posted: Fri Oct 28, 2011 12:41 pm
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'
Re: ERROR: Nagios Core install appears to have failed - exit
Posted: Fri Oct 28, 2011 1:33 pm
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
Re: ERROR: Nagios Core install appears to have failed - exit
Posted: Fri Oct 28, 2011 2:47 pm
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'
Re: ERROR: Nagios Core install appears to have failed - exit
Posted: Fri Oct 28, 2011 3:14 pm
by lmiltchev
Is this a "clean install"? Do you have Gnome installed? Are you behind a proxy?
Re: ERROR: Nagios Core install appears to have failed - exit
Posted: Fri Oct 28, 2011 3:59 pm
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?
Re: ERROR: Nagios Core install appears to have failed - exit
Posted: Fri Oct 28, 2011 4:34 pm
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
Re: ERROR: Nagios Core install appears to have failed - exit
Posted: Mon Oct 31, 2011 11:26 am
by bongmendoza
any other suggestions?
Re: ERROR: Nagios Core install appears to have failed - exit
Posted: Mon Oct 31, 2011 11:47 am
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.
Re: ERROR: Nagios Core install appears to have failed - exit
Posted: Mon Oct 31, 2011 12:06 pm
by bongmendoza
I've attached the install.log
Basically, same error....
Re: ERROR: Nagios Core install appears to have failed - exit
Posted: Mon Oct 31, 2011 12:22 pm
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