NagiosXI安装失败:[Errno 256]没有更多尝试的镜像

时间:2019-01-17 13:14:50

标签: redhat nagios rhel7 nagiosxi

我正在尝试在RHEL7.6最小安装的新VM映像上安装NagiosXI.5.5.8。它在运行./fullinstall的步骤1上失败,错误为[Errno 256] No more mirrors to try

1 个答案:

答案 0 :(得分:0)

看来nagios-7.repo中的/etc/yum.repos.d回购是不正确的。它正在寻找http网址,但nagios使用的是https。

nagios-7.repo

[nagios-base]
name=Nagios
baseurl=http://repo.nagios.com/nagios/7/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2

[nagiosxi-deps]
name=Nagios XI Dependencies
baseurl=http://repo.nagios.com/nagiosxi-deps/7/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2

这似乎可行:

[nagios-base]
name=Nagios
baseurl=https://repo.nagios.com/nagios/7/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2

[nagiosxi-deps]
name=Nagios XI Dependencies
baseurl=https://repo.nagios.com/nagiosxi-deps/7/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NAGIOS-V2