Page 1 of 2

Unable to install Linux Agent

Posted: Tue Nov 12, 2013 1:09 am
by lafargeuser
Trying to install Linux NRPE agent on CentOS release 6.3 (Final)_x86_64 machine. But coudnt complete. pasting install.log file here.

I have installed OpenStack on above Server & trying to monitor using Nagios.


Nagios Linux Agent Installation Log
===================================
DATE: Mon Nov 11 14:43:49 IST 2013

DISTRO INFO:
CentOS
6.3
x86_64

Configuring Yum...
epel-release RPM installed OK
Yum configured OK
Installing prerequisites...
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

Re: Unable to install Linux Agent

Posted: Tue Nov 12, 2013 4:02 am
by Servo
try to change 'mirrorlist=https' to 'mirrorlist=http'

Re: Unable to install Linux Agent

Posted: Tue Nov 12, 2013 11:49 am
by lmiltchev
Run the following commands:

Code: Select all

yum clean all
yum update
Then try to install the prereqs manually:

Code: Select all

yum -y install autoconf gcc glibc libmcrypt-devel make openssl-devel sudo sysstat xinetd bc
Do you get any errors, when you try to install prereqs this way?

Re: Unable to install Linux Agent

Posted: Wed Nov 13, 2013 12:48 am
by lafargeuser
[root@OpenStack ~]# yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
[root@OpenStack ~]# yum -y install autoconf gcc glibc libmcrypt-devel make opens sl-devel sudo sysstat xinetd bc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

Re: Unable to install Linux Agent

Posted: Wed Nov 13, 2013 10:25 am
by tmcdonald
You need to set up the EPEL (Extra Packages for Enterprise Linux) repo:

Code: Select all

sudo rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
then post the output of

Code: Select all

yum repolist 
to confirm.

Re: Unable to install Linux Agent

Posted: Thu Nov 14, 2013 1:16 am
by lafargeuser
Did install EPEL.

DATE: Thu Nov 14 11:39:45 IST 2013

DISTRO INFO:
CentOS
6.3
x86_64

Yum already configured - exiting.
Installing prerequisites...
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again


[root@OpenStack ~]# yum reposlist
Loaded plugins: fastestmirror, refresh-packagekit, security
No such command: reposlist. Please use /usr/bin/yum --help

Re: Unable to install Linux Agent

Posted: Thu Nov 14, 2013 10:56 am
by slansing
yum repolist

Re: Unable to install Linux Agent

Posted: Thu Nov 14, 2013 10:59 am
by yancy
Also.

Code: Select all

ls /etc/yum.repos.d

Re: Unable to install Linux Agent

Posted: Fri Nov 15, 2013 12:46 am
by lafargeuser
[root@OpenStack ~]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

[root@OpenStack ~]# ls /etc/yum.repos.d/
CentOS-Base.repo CentOS-Vault.repo foreman.repo
CentOS-Debuginfo.repo epel.repo puppetlabs.repo
CentOS-Media.repo epel-testing.repo rdo-release.repo

Re: Unable to install Linux Agent

Posted: Fri Nov 15, 2013 12:36 pm
by tmcdonald
Can you post the contents of /etc/yum.repos.d/epel.repo please?