Tuesday, June 17, 2014

CentOS 6.x - Install Nagios NRPE client

If yuo try to install Nagios NRPE client form romforge repository, you might get the following error:
# rpm -Uhv http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# yum install nagios nagios-plugins nagios-plugins-nrpe nagios-devel nagios-nrpe
Error: Package: nagios-3.2.3-3.el5.rf.x86_64 (rpmforge)
           Requires: libltdl.so.3()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

You an try the epel noarch rpm:

Update Epel repo:
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
--2014-06-16 10:49:15--  http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Resolving dl.fedoraproject.org... 209.132.181.26, 209.132.181.27, 209.132.181.23, ...
Connecting to dl.fedoraproject.org|209.132.181.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14540 (14K) [application/x-rpm]
Saving to: “epel-release-6-8.noarch.rpm”

# rpm -Uvh epel-release-6-8.noarch.rpm
warning: epel-release-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]

Install Nagios NRPE client:
#  yum --enablerepo=epel -y install nagios nagios-plugins nagios-plugins-nrpe nagios-devel nagios-nrpe
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                        |  12 kB     00:00    
 * base: centos.mirror.ca.planethoster.net
 * epel: fedora-epel.mirror.iweb.com
 * extras: centos.mirror.netelligent.ca
 * rpmforge: apt.sw.be
 * updates: mirror.netaddicted.ca
epel                                                                                                                                                 | 4.4 kB     00:00    
epel/primary_db                                                                                                                                      | 6.2 MB     00:01    
Setting up Install Process
Resolving Dependencies
...
---> Package php-cli.x86_64 0:5.3.3-27.el6_5 will be installed
---> Package php-common.x86_64 0:5.3.3-27.el6_5 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
Installed:
  nagios.x86_64 0:3.5.1-1.el6                   nagios-devel.x86_64 0:3.5.1-1.el6       nagios-nrpe.x86_64 0:2.14-1.el5.rf       nagios-plugins.x86_64 0:1.4.16-10.el6     
  nagios-plugins-nrpe.x86_64 0:2.15-2.el6     

Dependency Installed:
  apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1     gd.x86_64 0:2.0.35-11.el6              httpd.x86_64 0:2.2.15-30.el6.centos        httpd-tools.x86_64 0:2.2.15-30.el6.centos   
  libXpm.x86_64 0:3.5.10-2.el6               nagios-common.x86_64 0:3.5.1-1.el6     openssl098e.x86_64 0:0.9.8e-18.el6_5.2     php.x86_64 0:5.3.3-27.el6_5          php-cli.x86_64 0:5.3.3-27.el6_5            php-common.x86_64 0:5.3.3-27.el6_5   
Complete!

Now you can configure your NRPE client.

No comments: