NagiosEnterprises / nagioscore

Nagios Core
GNU General Public License v2.0
1.48k stars 440 forks source link

Updating Nagios Package on CentOS 7 failing #950

Closed nidhin215 closed 2 months ago

nidhin215 commented 3 months ago

Unable to update packages in CentOS7/CL7 due to dependency issue

--> Running transaction check ---> Package nagios-plugins-ssl_validity.x86_64 0:2.4.8-1.el7 will be installed --> Processing Dependency: perl(Crypt::X509) for package: nagios-plugins-ssl_validity-2.4.8-1.el7.x86_64 --> Processing Dependency: perl(Text::Glob) for package: nagios-plugins-ssl_validity-2.4.8-1.el7.x86_64 --> Running transaction check ---> Package nagios-plugins-ssl_validity.x86_64 0:2.4.8-1.el7 will be installed --> Processing Dependency: perl(Crypt::X509) for package: nagios-plugins-ssl_validity-2.4.8-1.el7.x86_64 ---> Package perl-Text-Glob.noarch 0:0.09-7.el7 will be installed --> Finished Dependency Resolution Error: Package: nagios-plugins-ssl_validity-2.4.8-1.el7.x86_64 (epel) Requires: perl(Crypt::X509)

gaguilard71 commented 3 months ago

Are you tried to update using the update from the Nagios XI GUI?. If this is the case, because I ran in problems to update, first, be sure that the current configuration is ok, second, be sure that database repair process ends correctly, and after that, try to update manually following the instructions, taking on count that there are two different ways to perform it depending on the version you are trying to install. Try with a yum update and a reboot too before update. This was the only way that I had update Nagios to the last version. Cheers.

nem8 commented 3 months ago

Seeing the same issue when trying to update a RHEL 7 server: ---> Package nagios-plugins-ssl_validity.x86_64 0:2.4.8-1.el7 will be installed --> Processing Dependency: perl(Crypt::X509) for package: nagios-plugins-ssl_validity-2.4.8-1.el7.x86_64 --> Finished Dependency Resolution Error: Package: nagios-plugins-ssl_validity-2.4.8-1.el7.x86_64 (epel) Requires: perl(Crypt::X509)

atdtinformatica commented 3 months ago

Since the new update, published on 03/18/24, of nagios in the epel repository (nagios core and plugins) this problem is occurring.

the problem is in an unsatisfied dependency for the package nagios-plugins-ssl_validity-2.4.8-1.el7.x86_64

Here you can see the error:

yum deplist nagios-plugins-ssl_validity-2.4.8-1.el7.x86_64

Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

The package that provides the Crypt::X509 perl module is not correctly configured. As indicated in the deplist:

dependency: perl(Crypt::X509) Unsatisfied dependency

I hope you can report it to the corresponding person and it can be resolved as soon as possible.

Tnx,

Gabriel.-

terryupton commented 3 months ago

I am also seeing the same errors for the past 3 days (attempts).

jouluz commented 3 months ago

https://bugzilla.redhat.com/show_bug.cgi?id=2270251

Here is the reason

UftangForgeTech commented 3 months ago

Also there is no other version in the repo now. So the installation on the clean Centos 7 vm will fail as well. `yum --showduplicates list nagios-plugins-all Loaded plugins: fastestmirror Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast Determining fastest mirrors

francescor commented 3 months ago

we are stuck, too

installing perl-Crypt-OpenSSL-X509.x86_64 does not solve

Wade9320 commented 3 months ago

We are having the same issue too.

nidhin215 commented 3 months ago

Hi

I was able to fix it by running the below command

yum-config-manager --enable epel-testing && yum update -y

iphoster commented 3 months ago

Hi

I was able to fix it by running the below command

yum-config-manager --enable epel-testing && yum update -y

it doesn't give any result

vmpr commented 3 months ago

Hi

I was able to fix it by running the below command

yum-config-manager --enable epel-testing && yum update -y

that's not a good idea to just enable the epel-testing repo, all the packages in there are in testing state, so you will probably start to install unstable packages into your system

francescor commented 3 months ago

we are stuck with all our production Centos 7, a viable solution would be I guess to disable the nagios-plugins-all while installing (selecting, one by one) all its plugins but nagios-plugins-ssl_validity (any ideas on how to do it easily?), and installing it back when this issue is solved (btw, we would really like to have nagios-plugins-ssl_validity, so we're very happy it's coming)

nidhin215 commented 3 months ago

we are stuck with all our production Centos 7, a viable solution would be I guess to disable the nagios-plugins-all while installing (selecting, one by one) all its plugins but nagios-plugins-ssl_validity (any ideas on how to do it easily?), and installing it back when this issue is solved (btw, we would really like to have nagios-plugins-ssl_validity, so we're very happy it's coming)

You can disable the nagios updates for now by adding it to the exclude section in /etc/yum.conf

rmaslanka commented 3 months ago

I suppose the issue was fixed today: https://bugzilla.redhat.com/show_bug.cgi?id=2270251#c4

terryupton commented 3 months ago

I believe this was fixed. We witnessed a successful update last night as a result of the above https://github.com/NagiosEnterprises/nagioscore/issues/950#issuecomment-2020757578.

francescor commented 3 months ago

We confirm, too, it's solved now

francescor commented 3 months ago

(too bad the nagios-plugins-ssl_validity plugin is not available anymore: do any of you know which one was it? so we can install it by hand? )

sawolf commented 2 months ago

Hi @francescor - I think nagios-plugins-ssl_validity is probably this perl script. I'm not familiar with the EPEL packages but I wouldn't be too surprised if it was rolled into the main package (or a nagios-plugins perl package if that exists).

It sounds like the original issue is resolved now; closing.