Page 1 of 1

Unable to install nrpe on centos 7 with mariadb

Posted: Sun Apr 16, 2017 11:24 am
by bostjanc
Hi guys.
Please help me out.
yum install -y nrpe nagios-plugins-all openssl
Throws an error:
Error: Package: nagios-plugins-mysql-2.1.4-3.el6.x86_64 (epel)
Requires: libmysqlclient.so.16()(64bit)
Error: Package: nagios-plugins-mysql-2.1.4-3.el6.x86_64 (epel)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest


Tried with: ln -s /usr/lib64/mysql/libmysqlclient.so.18 /usr/lib64/mysql/libmysqlclient.so.16

but that didn't help

cd /usr/lib64/mysql/
dir
INFO_BIN libmysqlclient_r.so libmysqlclient.so.16 libmysqlclient.so.18.0.0 mysqlbug nagios-plugins-mysql-2.1.4-2.el7.x86_64.rpm.html
INFO_SRC libmysqlclient.so libmysqlclient.so.18 mysql-5.1.66-2.el6_3.src.rpm mysql_config plugin

Please advise. With best regards

Re: Unable to install nrpe on centos 7 with mariadb

Posted: Sun Apr 16, 2017 5:40 pm
by dwhitfield
Are you looking for a particular version? Either way really, I'd just compile from source:
https://support.nagios.com/kb/article.php?id=515 (despite the title, directions for both are on that link)

Re: Unable to install nrpe on centos 7 with mariadb

Posted: Sun Apr 16, 2017 8:51 pm
by eloyd
We've never had a problem installing from source on a 64-bit box before. It's pretty painless.

Re: Unable to install nrpe on centos 7 with mariadb

Posted: Mon Apr 17, 2017 8:42 am
by bostjanc
Thanks.
https://support.nagios.com/kb/article.php?id=515 did the trick.
One sub-question.
In previous nrpe installations thru yum I think I got nagios plugins automatically stored inside folder:
/usr/lib64/nagios/plugins/

If I use deploying nrpe with compiling that folder does not exists even If I did the steps for pushing the plugins:

***********************************
* OPTIONAL - install Nagios PLUGINS
***********************************
INSTALL Prerequisites
yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils epel-release
yum install -y perl-Net-SNMP


**********************
* Download from source
**********************
cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagio ... 2.0.tar.gz
tar zxf nagios-plugins.tar.gz


*********************
* Compile and install
*********************
cd /tmp/nagios-plugins-release-2.2.0/
./tools/setup
./configure
make
make install

Re: Unable to install nrpe on centos 7 with mariadb

Posted: Mon Apr 17, 2017 11:37 am
by dwhitfield
Generally speaking, sub-questions should be separate forum threads, but I'm guessing this one will be easy.

What's the output of ll /usr/local/nagios/libexec?

If nothing, find / -name check_http.

Re: Unable to install nrpe on centos 7 with mariadb

Posted: Tue Apr 18, 2017 2:46 am
by bostjanc
Thank you for your replies.

I guess plugins are "extracted" to
/usr/local/nagios/libexec/

Case closed. Thanks again.
With best regards!