如何在 Oracle Linux 9 上安装 nagios-plugins-all RPM?

如何在 Oracle Linux 9 上安装 nagios-plugins-all RPM?
[root@snc-ol93-rhck ~]# uname -r
5.14.0-362.8.1.el9_3.x86_64

当我尝试像这样安装 RPM 时...

[root@snc-ol93-rhck ~]# dnf install https://yum.oracle.com/repo/OracleLinux/OL9/developer/EPEL/x86_64/getPackage/nagios-plugins-all-2.4.0-5.el9.x86_64.rpm

我收到这个错误...

Error:
 Problem: package nagios-plugins-all-2.4.0-5.el9.x86_64 from @commandline requires nagios-plugins-disk_smb, but none of the providers can be installed
  - package nagios-plugins-disk_smb-2.4.0-5.el9.x86_64 from ol9_developer_EPEL requires perl(utf8::all), but none of the providers can be installed
  - package nagios-plugins-disk_smb-2.4.0-7.el9.x86_64 from ol9_developer_EPEL requires perl(utf8::all), but none of the providers can be installed
  - package nagios-plugins-disk_smb-2.4.3-1.el9.x86_64 from ol9_developer_EPEL requires perl(utf8::all), but none of the providers can be installed
  - package nagios-plugins-disk_smb-2.4.4-1.el9.x86_64 from ol9_developer_EPEL requires perl(utf8::all), but none of the providers can be installed
  - package nagios-plugins-disk_smb-2.4.6-1.el9.x86_64 from ol9_developer_EPEL requires perl(utf8::all), but none of the providers can be installed
  - package nagios-plugins-disk_smb-2.4.6-2.el9.x86_64 from ol9_developer_EPEL requires perl(utf8::all), but none of the providers can be installed
  - conflicting requests
  - nothing provides perl(Import::Into) needed by perl-utf8-all-0.024-14.el9.noarch from ol9_developer_EPEL
  - nothing provides perl(PerlIO::utf8_strict) needed by perl-utf8-all-0.024-14.el9.noarch from ol9_developer_EPEL
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

我在使用 Oracle Linux 9.3 RHCK。

[root@snc-ol93-rhck ~]# cat /etc/oracle-release
Oracle Linux Server release 9.3

答案1

我在 Oracle Linux 8 上遇到了几乎相同的错误消息。唯一的区别是它指的是 nagios-plugins-disk_smb-2.3.3.3-x 版本。我尝试使用以下命令从存储库中排除有问题的 _smb 软件包版本,但对我来说不起作用。

dnf config-manager --save --setopt ol8_developer_EPEL.exclude=nagios-plugins-2.3.3-3.el8.x86_64

我按照在以下位置找到的指南,通过从源代码安装 Nagios 插件来使其工作: https://kifarunix.com/how-to-install-nagios-plugins-from-source-rhel-centos-oracle-linux/

然后我使用了这些文档:https://docs.librenms.org/Extensions/Services/ 以便在 LibreNMS 中启用服务。

这些文档对编辑 config.php 的解释对我来说没有意义,因此使用了此处的文档:https://community.librenms.org/t/making-changes-persist-in-config-php-when-using-a-docker-container/20422/2

指导我将 LibreNMS 配置更改转换为启用 lnms 语法的服务。我的命令如下:

自由意志主义

lmns 配置:设置 discover_services true

lmns 配置:设置 discover_services_templates true

lmns 配置:设置 show_services true

lmns 配置:设置 nagios_plugins /usr/local/nagios/libexec

请注意,上面的插件路径与我系统上的路径相同。您可能需要修改它以适应您这边的安装路径。祝您好运!

相关内容