今天使用check_nrpe的时候提示
-bash: /usr/local/nagios/libexec/check_nrpe: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
估计是缺少链接库,使用下面命令
ldd /usr/local/nagios/libexec/check_nrpe
linux-gate.so.1 => (0x00647000)
libssl.so.6 => /usr/lib/libssl.so.6 (0x001ad000)
libcrypto.so.6 => /usr/lib/libcrypto.so.6 (0x00d01000)
libnsl.so.1 => /lib/libnsl.so.1 (0x0055c000)
libc.so.6 => /lib/libc.so.6 (0x001f8000)
libgssapi_krb5.so.2 => /lib/libgssapi_krb5.so.2 (0x00a49000)
libkrb5.so.3 => /lib/libkrb5.so.3 (0x0038e000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00fd3000)
libk5crypto.so.3 => /lib/libk5crypto.so.3 (0x00f2c000)
libresolv.so.2 => /lib/libresolv.so.2 (0x0068c000)
libdl.so.2 => /lib/libdl.so.2 (0x00c4c000)
libz.so.1 => /lib/libz.so.1 (0x00110000)
/lib/ld-linux.so.2 (0x0098f000)
libkrb5support.so.0 => /lib/libkrb5support.so.0 (0x00cc4000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00ae7000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00aae000)
libselinux.so.1 => /lib/libselinux.so.1 (0x00124000)
yum whatprovides ld-linux.so.2
提示缺少了glibc的库,于是yum install -y glibc.i686 ,提示消失,但是又提示缺少
./check_nrpe: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory
使用:yum whatprovides libssl.so.6 查看缺少的库
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
openssl098e-0.9.8e-17.el6.centos.2.i686 : A compatibility version of a general cryptography and TLS library
Repo : base
Matched from:
Other : libssl.so.6
yum install -y openssl098e-0.9.8e-17.el6.centos.2.i686
check_nrpe 正常可以使用了。
本文标题:今天装nagios监控的,用NRPE是提示缺少插件
网页链接:
http://cdkjz.cn/article/peiggj.html