使用 epel repo 安装 nagios 3.5.1

使用 epel repo 安装 nagios 3.5.1

我正在尝试使用 epel repo 通过 yum 安装 nagios-core 3.5.1。由于旧版本的 nagios 已从 epel-repo 中删除,我遇到了问题。最新的 epel-repo 随 nagios 4.3.2 一起提供。我正在使用 ansible 来配置 nagios。

yum info nagios这是我添加 epel-repo 后看到的输出。

Available Packages
Name        : nagios
Arch        : x86_64
Version     : 4.3.2
Release     : 5.el6
Size        : 1.7 M
Repo        : epel
Summary     : Host/service/network monitoring program
URL         : https://www.nagios.org/projects/nagios-core/
License     : GPLv2
Description : Nagios is a program that will monitor hosts and services on your
            : network.  It has the ability to send email or page alerts when a
            : problem arises and when a problem is resolved.  Nagios is written
            : in C and is designed to run under Linux (and some other *NIX
            : variants) as a background process, intermittently running checks
            : on various services that you specify.
            :
            : The actual service checks are performed by separate "plugin" programs
            : which return the status of the checks to Nagios. The plugins are
            : available at https://github.com/nagios-plugins/nagios-plugins
            :
            : This package provides the core program, web interface, and documentation
            : files for Nagios. Development files are built as a separate package.

答案1

如果您想使用安装rpm,请下载软件包这里并安装它:

rpm -Uvh nagios-3.5.1-1.el6.x86_64.rpm

尝试看看旧版本的 nagios 是否仍然可用(仔细检查以确定。您不想无缘无故地跳过障碍)

yum --showduplicates list nagios | expand

如果旧版本不存在:

禁用新的 EPEL 存储库/etc/yum/yum.repos.d/

添加旧的 EPEL 存储库:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

确保启用旧的存储库/etc/yum/yum.repos.d/,然后安装nagios

yum install nagios -y

答案2

方便的是,您决定不再提供您的发行版本,但是通过推论,我提供了 EL6 软件包的链接,由 fedora koji 提供(这恰好是 epel 的来源):

https://koji.fedoraproject.org/koji/buildinfo?buildID=460533

相关内容