Page 6 of 6
Re: Nagios on XenServer 5.5
Posted: Tue Mar 12, 2013 3:47 pm
by brianweeks22
[root@XenHost8 plugins]# cd /usr/lib/nagios/plugins/
[root@XenHost8 plugins]# ls
check_disk check_load check_nrpe check_procs check_swap check_users negate urlize utils.sh
[root@XenHost8 plugins]# /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1
/usr/lib/nagios/plugins/check_nrpe: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
[root@XenHost8 plugins]#
Re: Nagios on XenServer 5.5
Posted: Tue Mar 12, 2013 3:50 pm
by abrist
Is openssl installed? (you may have just grabbed the devel headers for compiling with ssl enabled, but you may not have actually installed openssl)
Re: Nagios on XenServer 5.5
Posted: Tue Mar 12, 2013 3:51 pm
by brianweeks22
Package openssl-0.9.8e-26.el5_9.1.i686 already installed and latest version
should we be seeing that w/in the running services?
Re: Nagios on XenServer 5.5
Posted: Tue Mar 12, 2013 3:53 pm
by brianweeks22
[root@XenHost8 init.d]# which openssl
/usr/bin/openssl
[root@XenHost8 init.d]#
Re: Nagios on XenServer 5.5
Posted: Tue Mar 12, 2013 4:00 pm
by abrist
Well ssl is there. It does not need to run as a daemon as it is a shared lib. Lets check what libs you have:
Re: Nagios on XenServer 5.5
Posted: Tue Mar 12, 2013 4:10 pm
by abrist
Also run these following commands and post the output:
Code: Select all
find /usr/bin/openssl -type f -perm /a+x -exec ldd {} \; | grep so | sed -e '/^[^\t]/ d' | sed -e 's/\t//' | sed -e 's/.*=..//' | sed -e 's/ (0.*)//' | sort | uniq -c | sort -n
Code: Select all
find /usr/lib/nagios/plugins/check_nrpe -type f -perm /a+x -exec ldd {} \; | grep so | sed -e '/^[^\t]/ d' | sed -e 's/\t//' | sed -e 's/.*=..//' | sed -e 's/ (0.*)//' | sort | uniq -c | sort -n
Re: Nagios on XenServer 5.5
Posted: Tue Mar 12, 2013 4:20 pm
by brianweeks22
find / -name libssl*
[root@XenHost8 init.d]# find / -name libssl*
/usr/lib/pkgconfig/libssl.pc
/usr/lib/libssl.a
/usr/lib/libssl.so
/usr/lib/libssl3.so
/lib/libssl.so.6
/lib/libssl.so.0.9.8e
/lib/libssl.so
/opt/Citrix/StorageLink/lib/libssl.so.0.9.8
[root@XenHost8 init.d]#
[root@XenHost8 init.d]# [root@XenHost8 init.d]# find /usr/bin/openssl -type f -perm /a+x -exec ldd {} \; | grep so | sed -e '/^[^\t]/ d' | sed -e 's/\t//' | sed -e 's/.*=..//' | sed -e 's/ (0.*)//' | sort | uniq -c | sort -n
bash: [root@XenHost8: command not found
[root@XenHost8 init.d]# 1
1 /lib/ld-linux.so.2
bash: 1: command not found
[root@XenHost8 init.d]# 1 /lib/ld-linux.so.2
bash: 1: command not found
1 /lib/libcom_err.so.2
1 /lib/libcrypto.so.6
[root@XenHost8 init.d]# 1 /lib/libcom_err.so.2
1 /lib/libc.so.6
bash: 1: command not found
[root@XenHost8 init.d]# 1 /lib/libcrypto.so.6
1 /lib/libkeyutils.so.1
1 /lib/libresolv.so.2
bash: 1: command not found
[root@XenHost8 init.d]# 1 /lib/libc.so.6
1 /lib/libselinux.so.1
1 /lib/libsepol.so.1
bash: 1: command not found
[root@XenHost8 init.d]# 1 /lib/libdl.so.2
1 /lib/libz.so.1
1 /usr/lib/libgssapi_krb5.so.2
bash: 1: command not found
[root@XenHost8 init.d]# 1 /lib/libkeyutils.so.1
1 /usr/lib/libk5crypto.so.3
1 /usr/lib/libkrb5.so.3
1 /usr/lib/libkrb5support.so.0
[root@XenHost8 init.d]#
bash: 1: command not found
[root@XenHost8 init.d]# 1 /lib/libresolv.so.2
bash: 1: command not found
[root@XenHost8 init.d]# 1 /lib/libselinux.so.1
bash: 1: command not found
[root@XenHost8 init.d]# 1 /lib/libsepol.so.1
bash: 1: command not found
[root@XenHost8 init.d]# 1 /lib/libssl.so.6
bash: 1: command not found
[root@XenHost8 init.d]# 1 /lib/libz.so.1
bash: 1: command not found
[root@XenHost8 init.d]# 1 /usr/lib/libgssapi_krb5.so.2
bash: 1: command not found
[root@XenHost8 init.d]# 1 /usr/lib/libk5crypto.so.3
bash: 1: command not found
[root@XenHost8 init.d]# 1 /usr/lib/libkrb5.so.3
bash: 1: command not found
[root@XenHost8 init.d]# 1 /usr/lib/libkrb5support.so.0
bash: 1: command not found
[root@XenHost8 init.d]# [root@XenHost8 init.d]#
bash: [root@XenHost8: command not found
[root@XenHost8 init.d]#
[root@XenHost8 init.d]# find /usr/lib/nagios/plugins/check_nrpe -type f -perm /a+x -exec ldd {} \; | grep so | sed -e '/^[^\t]/ d' | sed -e 's/\t//' | sed -e 's/.*=..//' | sed -e 's/ (0.*)//' | sort | uniq -c | sort -n
1
1 /lib/ld-linux.so.2
1 /lib/libc.so.6
1 /lib/libnsl.so.1
2 not found
Re: Nagios on XenServer 5.5
Posted: Tue Mar 12, 2013 4:24 pm
by abrist
Well, looks like the check_nrpe binary I had you grab from the XI server will not work with the libraries on this system. Looks like you may have to build and install the
nagios-plugins on this xen box.
Re: Nagios on XenServer 5.5
Posted: Wed Mar 20, 2013 8:40 am
by brianweeks22
do you have any recomendations/simple methods of how this is completed?
Thanks
Re: Nagios on XenServer 5.5
Posted: Wed Mar 20, 2013 9:25 am
by abrist
Unpack the tarball from sourceforge and do what you normally would to build a package:
But as this server's repos have been a bit wonky, expect issues and be surprised if all goes well.