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):
Steps to Reproduce:
1. Install AlmaLinux
2. dnf install 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)
CHECK_UPDATES UNKNOWN - unknown Linux distribution
CHECK_UPDATES OK - no updates available | total_updates=0;0;0 security_updates=0;0;0
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
Check_updates 1.8.4, which is the latest upstream version, includes AlmaLinux and Rocky Linux support:
Please consider bumping the packaged version and releasing an updated package to allow for Alma/Rocky linux support in this plugin.
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.
Happy and willing to co-maintain this package in both EPEL and Fedora! Hope you're doing well Piotr.
FEDORA-EPEL-2022-fb229a43a5 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-fb229a43a5
I've merged a separate pull request  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.
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.
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.
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days