Monitoring pending updates and CVEs
Every Linux host reports how many package updates are pending, how many of them are security patches and whether it is waiting for a reboot, whichever package manager it uses. On top of that, the package inventory the agent already collects is matched on the platform against the OSV vulnerability database, so known CVEs show up per host on every distribution. Nothing to configure, and the agent never installs anything.
How the package manager is recognised
Five definitions share the service name os, one per manager, each matched on the
installed package: apt, dnf, dnf5 (Fedora), zypper and apk-tools. They run once an
hour, read-only, with a time budget of one to two minutes per command:
- apt:
apt-get -s -o Debug::NoLocking=true upgrade, a dry run that takes no lock, so it neither blocks a real apt run nor waits for one. EveryInstline is a pending update; the ones coming from a suite namedsecurityare security updates. The reboot flag is the file/var/run/reboot-required. - dnf:
dnf -q check-update(its exit code 100, "updates available", is treated as a normal outcome),dnf updateinfo list security --available,dnf updateinfo list --with-cve --availableanddnf updateinfo summary, plus the same reboot file. - dnf5:
dnf -q check-update,dnf advisory listanddnf updateinfo summary, plus the reboot file. - zypper:
zypper --non-interactive -q list-updatesandzypper list-patches --category security; the reboot flag is/run/reboot-needed. - apk:
apk list --upgradable.
What is collected
Counts. Pending updates on every manager. Security updates on apt, dnf, dnf5 and zypper. On the RHEL family the local advisory data goes further: the number of CVE and package pairs pending, and a severity split (critical, important, moderate, low). Fedora reports the same split plus the number of security notices.
Reboot required. A 0/1 flag from the distribution's own marker file.
Available updates. Next to the counts, the inventory of installed packages carries, per package, the version the package manager currently offers (from its local lists, no network) and a flag for packages no repository provides: software installed from a file, or left behind by a release upgrade. The lists are re-read whenever the package database changes, so an install or an upgrade reaches the console within seconds, on rpm systems as well as on apt.
| Signal | Metric |
|---|---|
| Pending updates | svc.os.updates_pending |
| Pending security updates | svc.os.security_updates |
| CVE and package pairs pending (RHEL family) | svc.os.cves_pending |
| Severity split (RHEL family, Fedora) | svc.os.security_critical, svc.os.security_important, svc.os.security_moderate, svc.os.security_low |
| Security notices (Fedora) | svc.os.security_notices |
| Reboot required | svc.os.reboot.exists |
| Actionable critical CVEs, matched on the platform | svc.os.cve_critical |
Names, tags and units are in the metrics reference.
Known vulnerabilities
The agent already inventories installed packages from the dpkg, rpm and apk databases,
each with its source package (the name advisories are published under: glibc, not
libc6). The platform correlates that inventory with the OSV database and produces, per
host, the CVEs that apply, their severity, the affected packages and the version that
fixes them, release by release (a fix published for another release of the distribution
is not your fix). The agent's part is only the inventory: it never calls an external feed
itself. Severity prefers your distribution's own assessment over the generic CVSS score, a
vulnerability known to be exploited in the wild is treated as critical regardless, and a
fix that exists only behind an extended-support subscription is labelled as such. A package
no repository provides is listed but not judged: there is nothing to compare it against,
and it will not receive updates until it comes from a repository again. The count of
actionable critical CVEs in packages lands back on the host as a metric; kernel findings
are shown but kept out of that count, because the fix for them is a reboot you schedule,
not a command to run now.
The kernel is judged by what is running. The agent reports the booted kernel
(uname -r, the image package behind it) and every installed kernel image with the time
it was installed. Vulnerabilities are matched against the running image only; a newer
image already installed that closes them turns the finding into "fixed, reboot required",
with the age of that install, and a kernel series the distribution no longer patches is
named as such instead of pretending an update will come. Debian and Ubuntu kernels are
matched through their source package; the RHEL family (Red Hat, Rocky, AlmaLinux) and
openSUSE through their release-specific feeds; Alpine with the little data its kernels
publish. Proxmox kernels are built from Ubuntu's tree and get three layers: the Ubuntu
base named in the build's changelog, minus what the changelog says the build fixed, with
Proxmox's own security advisories as the last word, read daily and automatically, both
for the kernel and for Proxmox's own packages. Distributions that publish no kernel
vulnerability feed (Fedora, CentOS Stream, SLES, Oracle) say "no vulnerability source"
rather than "no known CVEs". A container reports the host's kernel it runs on and gets
the host kernel's verdict, without counting it twice.
Alerts out of the box
| Rule | Fires when | Severity | Ships |
|---|---|---|---|
| Host is waiting for a reboot | the reboot flag has been set for 6 hours | warning | on |
| Security updates are piling up | 50 or more security updates pending for an hour | warning | on |
| Critical CVEs in installed packages | at least one actionable critical CVE is matched to the host | warning | on |
The six-hour hold separates a kernel update nobody scheduled a reboot for from the minutes between an upgrade and its planned restart. Fifty security updates held for an hour is a host that fell off its patch cadence, not the morning after a large release; the incident closes once the count is back under 20. The CVE rule fires without a hold because it is narrow by construction: it counts critical findings in packages that are actionable, fixable in your release or actively exploited, and leaves out kernel findings and the risks you accepted in the console. A critical with no fix anywhere stays visible as posture in the security module and does not page anyone, because there is nothing to run. All three are warnings: patch state is never a phone call. Thresholds and hysteresis for each rule are in the rules catalog.
Going deeper
The console's Security module turns all of this into a work list per machine: the targeted command that upgrades exactly the packages with a finding, the full upgrade next to it, the kernel and reboot state, the important CVEs, and accepted risks with their reason and term. The host-side signals around it (SSH, integrity, hardening) are in Host security.
Limitations
- Counts refresh once an hour, so a patch run shows up within the hour, not within the minute.
- apk reports a total only: Alpine publishes no security split, and there is no reboot flag to read.
- The severity split and the local CVE pairs exist only where the distribution ships advisory metadata (RHEL family, Fedora). On Debian, Ubuntu, SUSE and Alpine the CVE view comes from the platform-side correlation alone.
- On apt an update counts as a security update when it comes from a suite named
security; a mirror that renames the suite hides them from that count. - The inventory is the host's own package database. Software installed by other means (inside containers, by language package managers, from tarballs) is not matched, and a package the database knows but no repository provides is listed without a verdict.
- The agent reports. It never runs the upgrade and never reboots the host; the upgrade commands the console shows are for you to run.
Related
- Monitoring systemd and Monitoring SSH
- Monitoring backup freshness
- Monitoring cron
- Features on the main site