
[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 上遇到了幾乎相同的錯誤訊息。我嘗試使用以下命令從存儲庫中排除有問題的 _smb 軟體包版本,但它對我不起作用。
dnf 設定管理員 --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 設定:設定 discovery_services true
lmns 設定:設定 discovery_services_templates true
lmns 設定:設定 show_services true
lmns 設定:設定 nagios_plugins /usr/local/nagios/libexec
請注意,上面插件的路徑是我的系統上的路徑。您可能需要修改它以適合您安裝的路徑。祝你好運!