在 CentOS 7 上安装 naemon?

在 CentOS 7 上安装 naemon?

我遵循以下说明:http://www.naemon.org/documentation/usersguide/quickstart-centos.html

但是当我尝试“安装 Naemon”时,出现错误:

[root@ccnagios naemon-rpm]# yum install *naemon*
Loaded plugins: fastestmirror, langpacks
Examining libnaemon-1.0.3-1.rhel6.x86_64.rpm: libnaemon-1.0.3-1.el6.x86_64
Marking libnaemon-1.0.3-1.rhel6.x86_64.rpm to be installed
Examining naemon-1.0.3-1.rhel6.x86_64.rpm: naemon-1.0.3-1.el6.x86_64
Marking naemon-1.0.3-1.rhel6.x86_64.rpm to be installed
Examining naemon-core-1.0.3-1.rhel6.x86_64.rpm: naemon-core-1.0.3-1.el6.x86_64
Marking naemon-core-1.0.3-1.rhel6.x86_64.rpm to be installed
Examining naemon-core-dbg-1.0.3-1.rhel6.x86_64.rpm: naemon-core-dbg-1.0.3-1.el6.x86_64
Marking naemon-core-dbg-1.0.3-1.rhel6.x86_64.rpm to be installed
Examining naemon-devel-1.0.3-1.rhel6.x86_64.rpm: naemon-devel-1.0.3-1.el6.x86_64
Marking naemon-devel-1.0.3-1.rhel6.x86_64.rpm to be installed
Examining naemon-livestatus-1.0.3-1.rhel6.x86_64.rpm: naemon-livestatus-1.0.3-1.el6.x86_64
Marking naemon-livestatus-1.0.3-1.rhel6.x86_64.rpm to be installed
Examining naemon-thruk-1.0.3-1.rhel6.x86_64.rpm: naemon-thruk-1.0.3-1.el6.x86_64
Marking naemon-thruk-1.0.3-1.rhel6.x86_64.rpm to be installed
Examining naemon-thruk-libs-1.0.3-1.rhel6.x86_64.rpm: naemon-thruk-libs-1.0.3-1.el6.x86_64
Marking naemon-thruk-libs-1.0.3-1.rhel6.x86_64.rpm to be installed
Examining naemon-thruk-reporting-1.0.3-1.rhel6.x86_64.rpm: naemon-thruk-reporting-1.0.3-1.el6.x86_64
Marking naemon-thruk-reporting-1.0.3-1.rhel6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package libnaemon.x86_64 0:1.0.3-1.el6 will be installed
---> Package naemon.x86_64 0:1.0.3-1.el6 will be installed
--> Processing Dependency: naemon-tools = 1.0.3-1.el6 for package: naemon-1.0.3-1.el6.x86_64
Loading mirror speeds from cached hostfile
 * base: centos.copahost.com
 * epel: mirror.fraunhofer.de
 * extras: mirrors.prometeus.net
 * updates: centos.copahost.com
---> Package naemon-core.x86_64 0:1.0.3-1.el6 will be installed
---> Package naemon-core-dbg.x86_64 0:1.0.3-1.el6 will be installed
---> Package naemon-devel.x86_64 0:1.0.3-1.el6 will be installed
---> Package naemon-livestatus.x86_64 0:1.0.3-1.el6 will be installed
--> Processing Dependency: libicudata.so.42()(64bit) for package: naemon-livestatus-1.0.3-1.el6.x86_64
--> Processing Dependency: libicui18n.so.42()(64bit) for package: naemon-livestatus-1.0.3-1.el6.x86_64
--> Processing Dependency: libicuuc.so.42()(64bit) for package: naemon-livestatus-1.0.3-1.el6.x86_64
---> Package naemon-thruk.x86_64 0:1.0.3-1.el6 will be installed
---> Package naemon-thruk-libs.x86_64 0:1.0.3-1.el6 will be installed
---> Package naemon-thruk-reporting.x86_64 0:1.0.3-1.el6 will be installed
--> Finished Dependency Resolution
Error: Package: naemon-livestatus-1.0.3-1.el6.x86_64 (/naemon-livestatus-1.0.3-1.rhel6.x86_64)
           Requires: libicuuc.so.42()(64bit)
Error: Package: naemon-livestatus-1.0.3-1.el6.x86_64 (/naemon-livestatus-1.0.3-1.rhel6.x86_64)
           Requires: libicudata.so.42()(64bit)
Error: Package: naemon-1.0.3-1.el6.x86_64 (/naemon-1.0.3-1.rhel6.x86_64)
           Requires: naemon-tools = 1.0.3-1.el6
Error: Package: naemon-livestatus-1.0.3-1.el6.x86_64 (/naemon-livestatus-1.0.3-1.rhel6.x86_64)
           Requires: libicui18n.so.42()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

有谁能够帮助我?

答案1

你的问题和这个

您遵循的说明适用于 CentOS 6,但您正在运行不兼容的 CentOS 7。

Naemon 的 CentOS 7 软件包位于这里

在尝试安装 CentOS 7 之前,请确保撤消您在 CentOS 6 指南中遵循的步骤。


更多帮助

请尝试按照以下步骤操作,以摆脱系统中不兼容的 CentOS 6 软件包并为 CentOS 7 安装 Naemon(我尚未测试过这些说明):

epel-release从 CentOS 6 中删除

yum erase -y epel-release

epel-release为您当前的操作系统安装(CentOS 7)

yum install -y epel-release

下载 CentOS 7 Naemon 软件包

mkdir naemon ; cd naemon
wget -A rpm -mpEkKnp -nd https://labs.consol.de/naemon/release/v1.0.3/rhel7/x86_64/

安装 CentOS 7 Naemon 软件包

yum install *.rpm
cd ..

相关内容