Page 2 of 6

Re: Nagios on XenServer 5.5

Posted: Mon Mar 11, 2013 3:07 pm
by abrist
Post the output of the following:

Code: Select all

echo $PATH

Re: Nagios on XenServer 5.5

Posted: Mon Mar 11, 2013 3:08 pm
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

Re: Nagios on XenServer 5.5

Posted: Mon Mar 11, 2013 3:10 pm
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.

Re: Nagios on XenServer 5.5

Posted: Mon Mar 11, 2013 3:11 pm
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

Re: Nagios on XenServer 5.5

Posted: Mon Mar 11, 2013 3:15 pm
by abrist
Lets check it's location:

Code: Select all

find / -name gcc

Re: Nagios on XenServer 5.5

Posted: Mon Mar 11, 2013 3:16 pm
by brianweeks22
[root@XenHost8 nrpe-2.14]# find / -name gcc
[root@XenHost8 nrpe-2.14]#


returned a blank line

Re: Nagios on XenServer 5.5

Posted: Mon Mar 11, 2013 3:21 pm
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.

Re: Nagios on XenServer 5.5

Posted: Mon Mar 11, 2013 3:22 pm
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

Re: Nagios on XenServer 5.5

Posted: Mon Mar 11, 2013 3:30 pm
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"

Re: Nagios on XenServer 5.5

Posted: Mon Mar 11, 2013 3:31 pm
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]#