Centos
使用 epel repo 安裝 nagios 3.5.1
我正在嘗試使用 epel repo 安裝 nagios-core 3.5.1 和 yum。由於舊版本的 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.
如果您想使用 安裝它,請在此處
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
確保啟用舊的 repo
/etc/yum/yum.repos.d/
然後安裝nagios
yum install nagios -y