Page 1 of 1

configure won't create check_mysql plugin

Posted: Wed Feb 17, 2016 8:50 pm
by AdamPearlman
Hello -

I'm new to Nagios so hopefully this is an easy problem to solve. Thanks in advance.

I am running Nagios Core 4.1.1 with Plugins 2.1.1 on CentOS 7.

I am using the configure script to generate plugins, however I am unable to generate check_mysql. I am using the flag --with-mysql=/usr/bin/mysql_config (which is the correct path to mysql_config). I get the following when the configuration script runs:

configure: WARNING: Skipping mysql plugin
configure: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS).

I have looked in the REQUIREMENTS file and have installed all libraries.

Can anyone help me diagnose this problem?

Re: configure won't create check_mysql plugin

Posted: Thu Feb 18, 2016 10:30 am
by AdamPearlman
While I didn't "solve" the problem, I did figure out the cause and fixed it.

I was using an Ansible role to install MySQL then using Yum to install the libraries. I removed the ansible role and installed everything through Yum. Now check_mysql (and check_mysql_query) generate fine.

Re: configure won't create check_mysql plugin

Posted: Thu Feb 18, 2016 3:41 pm
by lmiltchev
I am glad your issue has been resolved! Is it all right if we lock the thread?