configure won't create check_mysql plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
AdamPearlman
Posts: 2
Joined: Wed Feb 17, 2016 6:29 pm

configure won't create check_mysql plugin

Post 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?
AdamPearlman
Posts: 2
Joined: Wed Feb 17, 2016 6:29 pm

Re: configure won't create check_mysql plugin

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: configure won't create check_mysql plugin

Post by lmiltchev »

I am glad your issue has been resolved! Is it all right if we lock the thread?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked