Bug 1941074 - Nagios Plugins, check_updates does not support AlmaLinux - unknown Linux distribution
Summary: Nagios Plugins, check_updates does not support AlmaLinux - unknown Linux dis...
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nagios-plugins-check-updates
Version: epel8
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Piotr Popieluch
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2021-03-19 21:19 UTC by Nathan Coulson
Modified: 2023-09-18 00:25 UTC (History)
6 users (show)

Fixed In Version: nagios-plugins-check-updates-1.7.10-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-09-18 01:08:42 UTC
Type: Bug

Attachments (Terms of Use)

Description Nathan Coulson 2021-03-19 21:19:00 UTC
Description of problem:
When running /usr/lib64/nagios/plugins/check_updates, it says CHECK_UPDATES UNKNOWN - unknown Linux distribution

Version-Release number of selected component (if applicable):
nagios-plugins-check-updates.x86_64            1.7.10-1.el8 

How reproducible:

Steps to Reproduce:
1. Install AlmaLinux 
2. dnf install nagios-plugins-check-updates
3. /usr/lib64/nagios/plugins/check_updates

(nagios-plugins-check-updates, uses /etc/redhat-release to find the distribution, so this can also be tested by using the following in /etc/redhat-release)
AlmaLinux release 8.3 RC (Purple Manul)

Actual results:
CHECK_UPDATES UNKNOWN - unknown Linux distribution

Expected results:
CHECK_UPDATES OK - no updates available | total_updates=0;0;0 security_updates=0;0;0

Additional info:

This is due to get_updater not returning yum when $name =~ /AlmaLinux/

I added the following line (with a +and it works.
    if (   $name =~ /Fedora/mxs
        || $name =~ /CentOS/mxs
+       || $name =~ /AlmaLinux/mxs
        || $name =~ /PUIAS/mxs

Comment 1 Karel Klic 2021-09-08 08:02:20 UTC
Check_updates 1.8.4, which is the latest upstream version, includes AlmaLinux and Rocky Linux support:


Comment 2 Alexander Bien 2021-12-16 11:59:16 UTC
Please consider bumping the packaged version and releasing an updated package to allow for Alma/Rocky linux support in this plugin.

Comment 3 seanmottles 2022-07-25 17:25:50 UTC
Attempting to resolve this with https://src.fedoraproject.org/rpms/nagios-plugins-check-updates/pull-request/3

Not 100% certain on the correct procedures for all this but thought I would try to help out a bit. Happy to apprentice the maintainer or something like that.

Comment 4 seanmottles 2022-09-07 08:26:59 UTC
Happy and willing to co-maintain this package in both EPEL and Fedora! Hope you're doing well Piotr.

Comment 5 Fedora Update System 2022-09-10 01:30:16 UTC
FEDORA-EPEL-2022-fb229a43a5 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-fb229a43a5

Comment 6 Carl George 🤠 2022-09-10 01:33:27 UTC
I've merged a separate pull request [0] that backports support for Alma and Rocky.  It's been built and should hit the testing repo soon.

If at some point the maintainers decided to update the epel8 package to 1.8.4 or newer, the backport patch can be dropped.  For now, this should get things working.

[0] https://src.fedoraproject.org/rpms/nagios-plugins-check-updates/pull-request/4

Comment 7 Fedora Update System 2022-09-10 20:51:55 UTC
FEDORA-EPEL-2022-fb229a43a5 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-fb229a43a5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2022-09-18 01:08:42 UTC
FEDORA-EPEL-2022-fb229a43a5 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Red Hat Bugzilla 2023-09-18 00:25:21 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days

Note You need to log in before you can comment on or make changes to this bug.