Unable to install Linux Agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Unable to install Linux Agent

Post 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
Servo
Posts: 15
Joined: Thu Mar 03, 2011 8:14 am

Re: Unable to install Linux Agent

Post by Servo »

try to change 'mirrorlist=https' to 'mirrorlist=http'
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to install Linux Agent

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: Unable to install Linux Agent

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Unable to install Linux Agent

Post 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.
Former Nagios employee
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: Unable to install Linux Agent

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Unable to install Linux Agent

Post by slansing »

yum repolist
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Unable to install Linux Agent

Post by yancy »

Also.

Code: Select all

ls /etc/yum.repos.d
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: Unable to install Linux Agent

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Unable to install Linux Agent

Post by tmcdonald »

Can you post the contents of /etc/yum.repos.d/epel.repo please?
Former Nagios employee
Locked