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 »

Post the output of the following:

Code: Select all

echo $PATH
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 nrpe-2.14]# echo $PATH
/opt/xensource/bin:/opt/xensource/bin:/opt/xensource/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios on XenServer 5.5

Post by sreinhardt »

What base OS is your xen server? You will need to install some form of C compiler. I take it that previously you were using an rpm packaged? You can probably do a "yum install gcc" or if it is debian based "apt-get install gcc". Then try to run configure again.
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 nrpe-2.14]# cat /proc/version
Linux version 2.6.32.12-0.7.1.xs6.0.2.542.170665xen (geeko@buildhost) (gcc version 4.1.2 20080704
(Red Hat 4.1.2-48)) #1 SMP Tue Jan 17 15:14:24 EST 2012

I am running Red hat 4.1 and it appears as if GCC is already installed
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios on XenServer 5.5

Post by abrist »

Lets check it's location:

Code: Select all

find / -name gcc
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 nrpe-2.14]# find / -name gcc
[root@XenHost8 nrpe-2.14]#


returned a blank line
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios on XenServer 5.5

Post by sreinhardt »

It would seem that it is not installed, and instead the gcc output above from cat /proc/version is just listing what your kernel was compiled with. So let's try a "yum install gcc" the ./configure once it is installed with all the needed dependencies. If it errors again, send back the output and we can see how far it has gotten.
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 »

yet another roadblock


[root@XenHost8 opt]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
No package gcc available.
Nothing to do
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios on XenServer 5.5

Post by sreinhardt »

Before I give instructions on making and compiling gcc as well, it looks like yum may not have been the main package manager for RHEL 4. Try "up2date gcc"
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]# up2date gcc
bash: up2date: command not found
[root@XenHost8 opt]# yum install up2date gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
No package up2date available.
No package gcc available.
Nothing to do
[root@XenHost8 opt]# up2date gcc
bash: up2date: command not found
[root@XenHost8 opt]#
Locked