Nagios on XenServer 5.5

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.
brianweeks22
Posts: 70
Joined: Fri Dec 21, 2012 12:26 pm

Re: Nagios on XenServer 5.5

Post 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]#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios on XenServer 5.5

Post 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)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
brianweeks22
Posts: 70
Joined: Fri Dec 21, 2012 12:26 pm

Re: Nagios on XenServer 5.5

Post 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?
brianweeks22
Posts: 70
Joined: Fri Dec 21, 2012 12:26 pm

Re: Nagios on XenServer 5.5

Post by brianweeks22 »

[root@XenHost8 init.d]# which openssl
/usr/bin/openssl
[root@XenHost8 init.d]#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios on XenServer 5.5

Post 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:

Code: Select all

find / -name libssl*
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios on XenServer 5.5

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
brianweeks22
Posts: 70
Joined: Fri Dec 21, 2012 12:26 pm

Re: Nagios on XenServer 5.5

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios on XenServer 5.5

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
brianweeks22
Posts: 70
Joined: Fri Dec 21, 2012 12:26 pm

Re: Nagios on XenServer 5.5

Post by brianweeks22 »

do you have any recomendations/simple methods of how this is completed?


Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios on XenServer 5.5

Post by abrist »

Unpack the tarball from sourceforge and do what you normally would to build a package:

Code: Select all

./configure
make
make install
But as this server's repos have been a bit wonky, expect issues and be surprised if all goes well.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked