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

Re: Nagios on XenServer 5.5

Post by abrist »

Lets find out what RHEL 4 named the gcc package:

Code: Select all

yum search gcc
What architecture (32/64/ppc/etc) is the base xen system running on?
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 »

[root@XenHost8 opt]# yum search gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
================================================== Matched: gcc ==================================================
compat-libstdc++-33.i386 : Compatibility standard C++ libraries
libgcc.i386 : GCC version 4.1 shared support library
libstdc++.i386 : GNU Standard C++ Library
libtermcap.i386 : A basic system library for accessing the termcap database.
[root@XenHost8 opt]#
brianweeks22
Posts: 70
Joined: Fri Dec 21, 2012 12:26 pm

Re: Nagios on XenServer 5.5

Post by brianweeks22 »

Sorry.. here is the answer to the rest of your question

[root@XenHost8 opt]# uname -a
Linux XenHost8 2.6.32.12-0.7.1.xs6.0.2.542.170665xen #1 SMP Tue Jan 17 15:14:24 EST 2012 i686 i686 i386 GNU/Linux
[root@XenHost8 opt]#
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios on XenServer 5.5

Post by sreinhardt »

Seems most likely that you are missing a repo or two that are needed for gcc. You are just showing some library's associated with it. How about "yum repolist all"
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
brianweeks22
Posts: 70
Joined: Fri Dec 21, 2012 12:26 pm

Re: Nagios on XenServer 5.5

Post by brianweeks22 »

[root@XenHost8 opt]# yum repolist all
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id repo name status
addons CentOS-5 - Addons disabled
base CentOS-5 - Base disabled
c5-media CentOS-5 - Media disabled
centosplus CentOS-5 - Plus disabled
citrix XenServer 6.0.2 updates enabled: 0
contrib CentOS-5 - Contrib disabled
epel Extra Packages for Enterprise Linux 5 - i386 disabled
epel-debuginfo Extra Packages for Enterprise Linux 5 - i386 - Debug disabled
epel-source Extra Packages for Enterprise Linux 5 - i386 - Source disabled
epel-testing Extra Packages for Enterprise Linux 5 - Testing - i386 disabled
epel-testing-debuginfo Extra Packages for Enterprise Linux 5 - Testing - i386 - Debug disabled
epel-testing-source Extra Packages for Enterprise Linux 5 - Testing - i386 - Source disabled
extras CentOS-5 - Extras disabled
updates CentOS-5 - Updates disabled
repolist: 0
[root@XenHost8 opt]#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios on XenServer 5.5

Post by abrist »

Hmmm. Any reason why you have CentOS 5 repos and a RHEL 4 kernel?
Another question: Any reason why the "base CentOS-5" repo is disabled?
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 »

I do not know the answer to this... I set up new xenservers and they linked w/nagios farily easy.

this is one of our older machines that was set-up by a previous sys admin.

I imagine he just used the xenserver installation CD? but from what I see, it looks like he may have done more?

I have to step into a meeting for 1 hour.. feel free to post any suggestions and I will comment on them in 1 hour!

Thank you again for your time and patience!

Brian
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios on XenServer 5.5

Post by sreinhardt »

You are certainly welcome, definitely glad to hear the other ones worked much easier! Enabling the repos shouldn't be too hard. Do the following commands although you may find some name differences:

ls /etc/yum.repos.d/
vi /etc/yum.repos.d/CentOS-Base.repo
change the [base] and [updates], enable line to enable=1
yum repolist all - [should now list base CentOS-3 as enabled]
yum update
yum install gcc

See how that's doing for us.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
brianweeks22
Posts: 70
Joined: Fri Dec 21, 2012 12:26 pm

Re: Nagios on XenServer 5.5

Post by brianweeks22 »

we're getting a little bit further:

i completed your last instructions... then ran ./configure --enable-SSL and it ran further than before, but ended with the error shown below:




[root@XenHost8 nrpe-2.14]# ./configure --enable-ssl
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking size of int... 4
checking size of short... 2
checking size of long... 4
checking for uint32_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for C99 vsnprintf... yes
checking for getopt_long... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for closesocket... no
checking for socklen_t... yes
checking for type of socket size... size_t
checking for SSL headers... configure: error: Cannot find ssl headers
[root@XenHost8 nrpe-2.14]#
brianweeks22
Posts: 70
Joined: Fri Dec 21, 2012 12:26 pm

Re: Nagios on XenServer 5.5

Post by brianweeks22 »

I installed openssl devel

then installed make..

then re-ran ./configure --enable-ssl

it completed

*** Configuration summary for nrpe 2.14 12-21-2012 ***:

General Options:
-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios


Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client.

[root@XenHost8 nrpe-2.14]# make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/opt/nrpe-2.14/nrpe-2.14/src'
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/lib -lssl -lcrypto -lnsl -lwrap
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -L/usr/lib -lssl -lcrypto -lnsl
make[1]: Leaving directory `/opt/nrpe-2.14/nrpe-2.14/src'

*** Compile finished ***

If the NRPE daemon and client compiled without any errors, you
can continue with the installation or upgrade process.

Read the PDF documentation (NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.

what do you suggest as the next step?

Thanks Again

Brian
Locked