Unable to install nrpe on centos 7 with mariadb

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
bostjanc
Posts: 17
Joined: Mon Mar 21, 2016 11:12 am

Unable to install nrpe on centos 7 with mariadb

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to install nrpe on centos 7 with mariadb

Post 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)
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Unable to install nrpe on centos 7 with mariadb

Post by eloyd »

We've never had a problem installing from source on a 64-bit box before. It's pretty painless.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
bostjanc
Posts: 17
Joined: Mon Mar 21, 2016 11:12 am

Re: Unable to install nrpe on centos 7 with mariadb

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Unable to install nrpe on centos 7 with mariadb

Post 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.
bostjanc
Posts: 17
Joined: Mon Mar 21, 2016 11:12 am

Re: Unable to install nrpe on centos 7 with mariadb

Post by bostjanc »

Thank you for your replies.

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

Case closed. Thanks again.
With best regards!
Locked