2015-04-15 39 views
0

我试着去上的测试RHEL盒nagiosxi一个安装linux NRPE代理监视,当我运行fullinstall脚本即时得到这个以下错误无法为库检索存储库的元数据:EPEL(RHEL 6.6)

[[email protected] linux-nrpe-agent]# ./fullinstall 
============================ 
Nagios Linux Agent Installer 
============================ 

This script will install the Nagios Linux Agent by executing all necessary 
sub-scripts. 

IMPORTANT: This script should only be used on a clean installed system: 

    RedHat Enterprise, CentOS, Fedora, or Oracle 
    OpenSUSE or SUSE Enterprise 
    Ubuntu or Debian 

Do NOT use this on a system running any other distro or that 
does not allow additional package installation. 

Do you want to continue? [Y/n] y 
Proceeding with installation... 
Running './0-repos'... 
Configuring Repos... 
Enabling EPEL repo... 
Installing EPEL PKG: ./packages/epel-release-6-5.noarch.rpm 
warning: ./packages/epel-release-6-5.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY 
Preparing...    ################################################## 
epel-release    ################################################## 
Loaded plugins: product-id, rhnplugin, security, subscription-manager 
This system is receiving updates from RHN Classic or RHN Satellite. 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again 
epel-release RPM installed OK 
Repos configured OK 
RESULT=0 
Running './1-prereqs'... 
Installing prerequisites... 
Loaded plugins: product-id, rhnplugin, security, subscription-manager 
This system is receiving updates from RHN Classic or RHN Satellite. 
Setting up Install Process 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again 
RESULT=1 

=================== 
INSTALLATION ERROR! 
=================== 
Installation step failed - exiting. 
Check for error messages in the install log (install.log). 

If you require assistance in resolving the issue, please include install.log 
in your communications with Nagios XI technical support. 

失败的脚本是:'./1-prereqs'

我已将它注册到RedHat网络,并且我到处搜索以找到此错误的解决方案,但没有运气。

回答

0

它看起来像缺少安装Nagios所需的epel-release。 你试过做sudo yum install epel-release吗?

那将是我最大的猜测,根据您的线路:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again RESULT=1

The script that failed was: './1-prereqs'

此外,检查确保代理设置允许该库的连接。有时这会导致下载某些回购数据时出现问题。

因此,简而言之,更新您的epel-release并确保其他任何先决条件都已更新。这可能不会造成伤害:sudo yum install yum-utils以确保yum-utils完全是最新的。

UPDATE:来源:Access Redhat

  1. 验证卫星或代理服务器具有完全合格的域名,并在的CommonName SSL证书。由Apache使用设置为完全合格的域名。
  2. 验证ssl.conf文件是否指向正确的文件。
    grep ^SSLCert /etc/httpd/conf.d/ssl.conf
  3. 如果系统指向代理,请检查以确保/etc/sysconfig/rhn/up2date配置了正确的http_proxy信息。
    httpProxy=http_proxy_fqdn or ip_address:port
  4. 更新yum来最新版本:yum update yum
  5. 清洁客户端系统上的缓存:rm -rf /var/cache/yum/*
+0

当我运行yum安装EPEL释放它仍然给存储库的元数据error..and用相同yum-utils –

+0

@WajahatMakki你很可能有一个代理设置,它阻止你获取这些存储库 –

+0

@WajahatMakki我刚刚添加了很多信息,请尝试这些更新的步骤。 –