Skip to content

check_apt missing updates from repos tagged with dashes, and from UbuntuESM #1974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ingvarha opened this issue Dec 14, 2023 · 2 comments
Open

Comments

@ingvarha
Copy link

ingvarha commented Dec 14, 2023

The plugin check_apt does not discover security updates that are tagged with repos with more than one dash in the name, like "xenial-infra-security", nor does it discover updates from UbuntuESM.

From the built-in doc:

Default is a regexp matching security upgrades for Debian and Ubuntu:

So the default regex is a bit tight. It is also unchanged from the version in Ubuntu Xenial (2.1.2-2ubuntu2) to the latest upstream version. Please consider updating the regex, matching UbuntuESM and repos with more than one dash in the name. Something like one of these may do:

^[^\(]*\(.* (Debian-Security:|Ubuntu:[^/]*/.+-security |UbuntuESM:[^/]*.+-security)
^[^\(]*\(.* (Debian-Security:|Ubuntu[^/]*/.+-security)

How to reproduce:

  1. Use a system with an Ubuntu Pro subscription, and with some missing updates from ESM
  2. Run check_apt

Example:

# /usr/lib/nagios/plugins/check_apt
APT WARNING: 1 packages available for upgrade (0 critical updates). |available_upgrades=1;;;0 critical_updates=0;;;0

# apt -s upgrade | grep -E '^Inst.+-security'
Inst bash [4.3-14ubuntu1.4] (4.3-14ubuntu1.4+esm1 UbuntuESM:16.04/xenial-infra-security [amd64])

# /usr/lib/nagios/plugins/check_apt -c '^[^\(]*\(.* (Debian-Security:|Ubuntu[^/]*/.+-security)'
APT CRITICAL: 1 packages available for upgrade (1 critical updates). |available_upgrades=1;;;0 critical_updates=1;;;0
@ingvarha
Copy link
Author

@waja
Copy link
Member

waja commented Dec 14, 2023

Also reported to Ubuntu: https://bugs.launchpad.net/ubuntu/+source/monitoring-plugins/+bug/2046443

I'd opt for coming up downstream with a patch that doesn't break other Distributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy