Page 1 of 1

Nagios XI installation fail with ndoutils error

Posted: Mon Feb 01, 2016 5:46 am
by mayadav
Installation failed with fullinstall script on RHEL5.11 32 bit. please see the attached install log.

make[1]: Leaving directory `/opt/nagiosxi/subcomponents/ndoutils/ndoutils-2.0.0/src'
/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 daemon-init /etc/rc.d/init.d/ndo2db
NDOUTILS-POST
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 1
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
kernel.core_pattern = /tmp/core
NOTE: If prompted, enter the MySQL root password
ERROR 1007 (HY000) at line 1: Can't create database 'nagios'; database exists
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting


below is first error-

NOTE: If prompted, enter the MySQL root password
install_driver(mysql) failed: Unable to get DBI state function. DBI not loaded. at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 253.
Compilation failed in require at (eval 5) line 3.

at ./installdb line 41
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
:q!
Subcomponents installation failed - exiting
+ echo 1
++ cat .fail-31406
+ echo RESULT=1
RESULT=1
+ '[' -f .fail-31406 ']'
+ cat

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './A-subcomponents'
+ exit 1

Re: Nagios XI installation fail with ndoutils error

Posted: Mon Feb 01, 2016 11:31 am
by rkennedy
It appears SQL is already installed on this machine, can you completely remove it and try again?

Re: Nagios XI installation fail with ndoutils error

Posted: Mon Feb 01, 2016 11:32 am
by hsmith
Was this system a clean minimal install?

I strongly recommend that you find out if you can use a more modern version of RHEL/CentOS. While we haven't officially ended support for XI on RHEL5/CentOS5, we have seen it cause a lot of problems with upgrades that require extra steps to make our software work.

Re: Nagios XI installation fail with ndoutils error

Posted: Tue Feb 02, 2016 2:11 am
by mayadav
we still see the error after the completely removing MYSQL.

kernel.core_pattern = /tmp/core
NOTE: If prompted, enter the MySQL root password
ERROR 1007 (HY000) at line 1: Can't create database 'nagios'; database exists
ERROR: Subcomponent 'ndoutils' installation failed - exiting.
Subcomponents installation failed - exiting
+ echo 1
++ cat .fail-3868
+ echo RESULT=1
RESULT=1
+ '[' -f .fail-3868 ']'
+ cat

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './A-subcomponents'
+ exit 1

Re: Nagios XI installation fail with ndoutils error

Posted: Tue Feb 02, 2016 10:30 am
by mayadav
Its little pain to setup NagiosXI manually. It has lot of dependency and repos issue.
It would be great if all source package in under 1 tar instead of installation from multiple repos.

Finally we got it install on RHEL 6 with proper repos set.

Thanks,
Mahendra

Re: Nagios XI installation fail with ndoutils error

Posted: Tue Feb 02, 2016 10:59 am
by hsmith
We do have an offline install here: http://repo.nagios.com/

However from this page:
CentOS

Offline server must still have access to CentOS Base Repo (actual or clone) for installation/upgrade
RHEL

Offline server must still have access to RHEL Base & Optional Channel Repo (actual or clone) for installation/upgrade
We have VM templates available in case access to these repos is not available.