Page 1 of 1

Storing data from Nagios to MariaDB using ndoutils

Posted: Fri Sep 07, 2018 12:07 pm
by youngek
Getting the errors below on trying to install ndoutils 2.1.3. I run ./configure then I notice this error:

*** 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

********************************************************************

I am running RHEL 7.5 with Mariadb. I have these packages installed
MariaDB-server-10.3.9-1.el7.centos.x86_64
MariaDB-common-10.3.9-1.el7.centos.x86_64
MariaDB-client-10.3.9-1.el7.centos.x86_64
MariaDB-devel-10.3.9-1.el7.centos.x86_64
MariaDB-compat-10.3.9-1.el7.centos.x86_64

Re: Storing data from Nagios to MariaDB using ndoutils

Posted: Fri Sep 07, 2018 3:22 pm
by ssax
What OS/ver are you doing this on?

Did you follow the guide and install the prerequisites?

https://support.nagios.com/kb/article.php?id=406

Are you missing mysql-devel package?

Re: Storing data from Nagios to MariaDB using ndoutils

Posted: Sun Sep 09, 2018 5:08 am
by youngek
RHEL 7.5. Yes I have followed the pre reqs. I had it installed and the socket file would not get created after start up so I removed it. And now I am trying to reinstall it.

Re: Storing data from Nagios to MariaDB using ndoutils

Posted: Mon Sep 10, 2018 4:22 pm
by npolovenko
@youngek, Please make sure that the strict trans table option is disabled in your MariaDB.
https://support.nagios.com/kb/article/n ... s-780.html

Then please run the configure script with the following option as suggested in the error log:
./configure --with-mysql=/usr/lib/mysql