资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

RedHat6.5(x86_64)启动nagios客户端nrpe报错的解决方法

tar xvf nagios.tar.gz -C /usr/local

创新互联公司长期为近1000家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为润州企业提供专业的成都网站设计、成都做网站,润州网站改版等技术服务。拥有十年丰富建站经验和众多成功案例,为您定制开发。

#/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

-bash: /usr/local/nagios/bin/nrpe: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

# yum provides ld-linux.so.2 

# yum install glibc.i686 --nogpgcheck -y 或直接 yum install ld-linux.so.2 --nogpgcheck

报错:

       Protected multilib versions: glibc-2.12-1.149.el6.i686 != glibc-2.12-1.149.el6_6.5.x86_64

Error: Protected multilib versions: nss-softokn-freebl-3.14.3-9.el6.i686 != nss-softokn-freebl-3.14.3-10.el6_5.x86_64

Error: Protected multilib versions: glibc-common-2.12-1.149.el6.i686 != glibc-common-2.12-1.149.el6_6.5.x86_64

# yum list | grep nss-softokn #查看安装的nss-softokn包

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

nss-softokn.x86_64                       3.14.3-10.el6_5           @anaconda-RedHatEnterpriseLinux-201311111358.x86_64/6.5

nss-softokn-freebl.x86_64                3.14.3-10.el6_5           @anaconda-RedHatEnterpriseLinux-201311111358.x86_64/6.5

nss-softokn.i686                         3.14.3-9.el6              rhel-6-x86_64

nss-softokn-devel.i686                   3.14.3-9.el6              rhel-6-x86_64

nss-softokn-devel.x86_64                 3.14.3-9.el6              rhel-6-x86_64

nss-softokn-freebl.i686                  3.14.3-9.el6              rhel-6-x86_64

nss-softokn-freebl-devel.i686            3.14.3-9.el6              rhel-6-x86_64

nss-softokn-freebl-devel.x86_64          3.14.3-9.el6              rhel-6-x86_64

报错原因:nagios.tar.gz是32位程序,需要的32位包nss-softokn-freebl-3.14.3-9.el6.i686安装不上,因为已经安装了nss-softokn-freebl-3.14.3-10.el6_5.x86_64,而实际上需要的是nss-softokn-freebl-3.14.3-10.el6.x86_64

i686的版本必须要和64位的版本一致才能安装(比如nss-softokn-freebl的3.14.3-9.el6 要等于 3.14.3-10.el6,后面的次版本号可以不一样,-9和-10可以不一样),需要将 nss-softokn-freebl-3.14.3-10.el6_5.x86_64的版本升级,并且不带el6_5,解决方法,在网上下载nss-softokn-freebl-3.14.3-17.el6.i686.rpm nss-softokn-freebl-3.14.3-17.el6.x86_64.rpm 

# yum localinstall nss-softokn-freebl-3.14.3-17.el6.x86_64.rpm  --nogpgcheck -y

# yum localinstall nss-softokn-freebl-3.14.3-17.el6.i686.rpm  --nogpgcheck -y

Loaded plugins: product-id, rhnplugin, security, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

This system is receiving updates from RHN Classic or RHN Satellite.

Setting up Local Package Process

Examining nss-softokn-freebl-3.14.3-17.el6.i686.rpm: nss-softokn-freebl-3.14.3-17.el6.i686

Marking nss-softokn-freebl-3.14.3-17.el6.i686.rpm to be installed

Resolving Dependencies

--> Running transaction check

---> Package nss-softokn-freebl.i686 0:3.14.3-17.el6 will be installed

--> Processing Dependency: libc.so.6 for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Processing Dependency: libc.so.6(GLIBC_2.0) for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Processing Dependency: libc.so.6(GLIBC_2.1) for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Processing Dependency: libc.so.6(GLIBC_2.1.3) for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Processing Dependency: libc.so.6(GLIBC_2.3) for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Processing Dependency: libc.so.6(GLIBC_2.3.4) for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Processing Dependency: libc.so.6(GLIBC_2.7) for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Processing Dependency: libdl.so.2 for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Processing Dependency: libdl.so.2(GLIBC_2.0) for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Processing Dependency: libdl.so.2(GLIBC_2.1) for package: nss-softokn-freebl-3.14.3-17.el6.i686

--> Running transaction check

---> Package glibc.i686 0:2.12-1.149.el6_6.5 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================

 Package                             Arch                  Version                             Repository                                               Size

=============================================================================================================================================================

Installing:

 nss-softokn-freebl                  i686                  3.14.3-17.el6                       /nss-softokn-freebl-3.14.3-17.el6.i686                  375 k

Installing for dependencies:

 glibc                               i686                  2.12-1.149.el6_6.5                  rhel-6-x86_64                                           4.3 M

Transaction Summary

=============================================================================================================================================================

Install       2 Package(s)

Total size: 4.7 M

Installed size: 14 M

Is this ok [y/N]: y

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing : glibc-2.12-1.149.el6_6.5.i686                                                                                                             1/2 

  Installing : nss-softokn-freebl-3.14.3-17.el6.i686                                                                                                     2/2 

  Verifying  : nss-softokn-freebl-3.14.3-17.el6.i686                                                                                                     1/2 

  Verifying  : glibc-2.12-1.149.el6_6.5.i686                                                                                                             2/2 

Installed:

  nss-softokn-freebl.i686 0:3.14.3-17.el6                                                                                                                    

Dependency Installed:

  glibc.i686 0:2.12-1.149.el6_6.5                                                                                                                            

Complete!

# yum list | grep nss-softokn  #查看安装的nss-softokn包

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

nss-softokn.x86_64                       3.14.3-10.el6_5           @anaconda-RedHatEnterpriseLinux-201311111358.x86_64/6.5

nss-softokn-freebl.i686                  3.14.3-17.el6             @/nss-softokn-freebl-3.14.3-17.el6.i686

nss-softokn-freebl.x86_64                3.14.3-17.el6             @/nss-softokn-freebl-3.14.3-17.el6.x86_64

nss-softokn.i686                         3.14.3-9.el6              rhel-6-x86_64

nss-softokn-devel.i686                   3.14.3-9.el6              rhel-6-x86_64

nss-softokn-devel.x86_64                 3.14.3-9.el6              rhel-6-x86_64

nss-softokn-freebl-devel.i686            3.14.3-9.el6              rhel-6-x86_64

nss-softokn-freebl-devel.x86_64          3.14.3-9.el6              rhel-6-x86_64

# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

/usr/local/nagios/bin/nrpe: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory

# yum install libssl.so.6 --nogpgcheck -y

# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

/usr/local/nagios/bin/nrpe: error while loading shared libraries: libwrap.so.0: cannot open shared object file: No such file or directory

# yum install libwrap.so.0 --nogpgcheck -y

附件:http://down.51cto.com/data/2367270

本文名称:RedHat6.5(x86_64)启动nagios客户端nrpe报错的解决方法
本文来源:http://cdkjz.cn/article/peodig.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220