我试图在其中一个测试rhel框上安装linux nrpe代理,以便监控nagiosxi,当我运行完整安装脚本时,我得到以下错误
[root@nrpetest2 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 :(得分:0)
您似乎缺少安装nagios所需的epel-release
。
您尝试过sudo yum install epel-release
吗?
根据你的观点,这将是我最大的猜测:
错误:无法检索存储库的存储库元数据(repomd.xml):epel。请验证其路径并再试一次RESULT = 1
失败的脚本是:'./1-prereqs'
此外, 检查 以确保 您的代理设置 允许与该存储库的连接。有时这会导致下载某些回购数据时出现问题。
因此,简而言之,请更新您的epel-release并确保已更新任何其他预先安排。执行:sudo yum install yum-utils
以确保yum-utils完全是最新的可能不会有什么坏处。
更新来自:Access Redhat
grep ^SSLCert /etc/httpd/conf.d/ssl.conf
/etc/sysconfig/rhn/up2date
配置了正确的http_proxy信息。 httpProxy=http_proxy_fqdn or ip_address:port
yum update yum
rm -rf /var/cache/yum/*