Nagios XI installation fail with ndoutils error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mayadav
Posts: 4
Joined: Fri Nov 27, 2015 2:42 am

Nagios XI installation fail with ndoutils error

Post 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
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios XI installation fail with ndoutils error

Post by rkennedy »

It appears SQL is already installed on this machine, can you completely remove it and try again?
Former Nagios Employee
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI installation fail with ndoutils error

Post 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.
Former Nagios Employee.
me.
mayadav
Posts: 4
Joined: Fri Nov 27, 2015 2:42 am

Re: Nagios XI installation fail with ndoutils error

Post 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
mayadav
Posts: 4
Joined: Fri Nov 27, 2015 2:42 am

Re: Nagios XI installation fail with ndoutils error

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI installation fail with ndoutils error

Post 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.
Former Nagios Employee.
me.
Locked