Page 1 of 1
Install Error Nagios XI
Posted: Mon Oct 28, 2019 10:24 am
by BollaertN
Trying to install Nagios XI, on Ubuntu 18, get this error:
make[2]: Leaving directory '/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-2.1.3/src'
Makefile:71: recipe for target 'ndo2db' failed
make[1]: *** [ndo2db] Error 2
make[1]: Leaving directory '/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-2.1.3/src'
Makefile:74: recipe for target 'all' failed
make: *** [all] Error 2
ERROR: Subcomponent 'ndoutils' 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).
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'
______________________________________________
Re: Install Error Nagios XI
Posted: Mon Oct 28, 2019 12:39 pm
by lmiltchev
This is definitely NOT a standard minimal "clean" Ubuntu 18 system... You had mariadb 10.1 installed on it , which would not work out of the box. Our script tried to remove it, and install the "default" mysql (5.7). Something must've went wrong as the mysql library could not be located on the system, and NDO failed to compile.
The following packages will be REMOVED:
mariadb-client-10.1 mariadb-client-core-10.1 mariadb-server
mariadb-server-10.1 mariadb-server-core-10.1
...
The following NEW packages will be installed:
mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7 mysql-server-core-5.7 php7.2-mysql
...
*** MySQL library could not be located... **************************
You chose to compile NDOutils with MySQL support, but I was unable to
locate the MySQL library on your system. If the library is
installed, use the --with-mysql=DIR argument to specify the
location of the MySQL library, We assume mysql_config is in DIR/bin
NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the MySQL libraries are installed.
2. Run 'ldconfig' to update the run-time linker options.
3. Run 'make devclean' in the NDBXT distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.
TIP: Try the following....
./configure --with-mysql=/usr/lib/mysql
You could try fixing the issue with installing mysql 5.7 first, and rerunning the fullinstall script or run the installer on a clean system (minimal install of Ubuntu 18).
Re: Install Error Nagios XI
Posted: Mon Oct 28, 2019 1:59 pm
by BollaertN
So the problem that I have is that the standard template clean install Ubuntu my company uses, just doesn't work with MySQL for whatever reason, and I have to use MariaDB.
I was able to progress past this issue however, so that is OK.
However, the point of this exercise is I am moving production Nagios XI from one server to another (original was on CentOS and the new one is Ubuntu). Now the issue I have is the old CentOS box uses Mod Gearman and I don't want to use that any more on the new box. Is there anything I need to do besides comment out the broker module line in nagios.cfg to get the system to bypass Mod Gearman?
Re: Install Error Nagios XI
Posted: Mon Oct 28, 2019 2:23 pm
by lmiltchev
Is there anything I need to do besides comment out the broker module line in nagios.cfg to get the system to bypass Mod Gearman?
No, this should be enough. Just comment out the broker_module lie for mod_gearman in the nagios.cfg file, and restart nagios service.