[Pkg-nagios-devel] Bug#1118973: monitoring-plugins-contrib: check_running_kernel fails on ProxMox kernels
Matija Nalis
mnalis-debianbug at voyager.hr
Sun Oct 26 00:02:01 BST 2025
Package: monitoring-plugins-contrib
Version: 48.20250420
Severity: normal
Tags: patch
X-Debbugs-Cc: mnalis-debianbug at voyager.hr
Dear Maintainer,
When running ProxMox kernel on Debian Bookworm, e.g. proxmox-kernel-6.8.12-15-pve from:
deb [arch=amd64] http://download.proxmox.com/debian/pve bookworm pve-no-subscription
it fails to detect that the running kernel is the same as the one on disk:
# /usr/lib/nagios/plugins/check_running_kernel
WARNING: Running kernel does not match on-disk kernel image: [Linux version 6.8.12-15-pve (build at proxmox) (gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-15 (2025-09-12T11:02Z) != Linux version 6.8.12-15-pve (build at proxmox) (gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-15 (2025-09-12T11:02Z) ()]
the difference seems to be just empty parenthesis " ()" at the end of the on-disk version, which IHMO should not affect the check.
The problem occurs both in Bookworm (42.20230308+deb12u1+b1), Bookworm Backports (45.20231212~bpo12+1) and a recent Trixie/Forky/Sid version (48.20250420)
The attached simple patch against 48.20250420 version fixes the issue by allowing that case (without disturbing existing ones):
# ./check_running_kernel
OK: Running kernel matches on disk image: [Linux version 6.8.12-15-pve (build at proxmox) (gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-15 (2025-09-12T11:02Z)]
-- System Information:
Debian Release: 12.12
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.8.12-15-pve (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
monitoring-plugins-contrib depends on no packages.
Versions of packages monitoring-plugins-contrib recommends:
ii bc 1.07.1-3+b1
ii bind9-host 1:9.18.33-1~deb12u2
pn binutils <none>
ii curl 7.88.1-10+deb12u14
pn debsecan <none>
ii file 1:5.44-3
ii freeipmi-tools 1.6.10-1+b1
ii libc6 2.36-9+deb12u13
pn libcapture-tiny-perl <none>
pn libdata-validate-domain-perl <none>
pn libdata-validate-ip-perl <none>
pn libdate-manip-perl <none>
pn libdbd-mysql-perl <none>
ii libio-socket-ssl-perl 2.081-2
ii libipc-run-perl 20220807.0-1
ii liblocale-gettext-perl 1.07-5
ii liblwp-useragent-determined-perl 1.07-3
pn libmail-imapclient-perl <none>
pn libmemcached11t64 <none>
pn libmonitoring-plugin-perl | libnagios-plugin-perl <none>
pn libnet-cups-perl <none>
ii libnet-dns-perl 1.36-1
pn libnet-dns-sec-perl <none>
pn libnet-smtp-ssl-perl <none>
pn libnet-smtp-tls-perl <none>
pn libnet-smtpauth-perl <none>
pn libnet-snmp-perl <none>
ii libnet-ssleay-perl 1.92-2+b1
pn libreadonly-perl <none>
pn libredis-perl <none>
ii libtimedate-perl 2.3300-2
pn libwebinject-perl <none>
ii libxml-simple-perl 2.25-2
ii lz4 1.9.4-1
ii lzop 1.04-2
ii monitoring-plugins-basic [nagios-plugins-basic] 2.3.3-5+deb12u2
ii openssl 3.0.17-1~deb12u2
ii perl 5.36.0-7+deb12u3
ii perl-base [libsocket-perl] 5.36.0-7+deb12u3
ii python3 3.11.2-1+b1
pn python3-pymongo <none>
pn ruby | ruby-interpreter <none>
pn snmp <none>
pn whois <none>
Versions of packages monitoring-plugins-contrib suggests:
pn backuppc <none>
ii bind9-dnsutils [dnsutils] 1:9.18.33-1~deb12u2
pn cciss-vol-status <none>
ii dnsutils 1:9.18.33-1~deb12u2
pn expect <none>
ii iproute2 6.1.0-3
pn libsys-virt-perl <none>
ii moreutils 0.67-1
pn mpt-status <none>
pn nagios-plugin-check-multi <none>
pn percona-toolkit <none>
pn perl-doc <none>
pn python3-boto <none>
pn smstools <none>
-- no debconf information
-------------- next part --------------
--- check_running_kernel.org 2025-04-20 23:08:25.000000000 +0200
+++ check_running_kernel 2025-10-26 00:57:23.538004986 +0200
@@ -236,7 +236,7 @@
exit $UNKNOWN
fi
- if [ "$running_version" != "$on_disk_version" ]; then
+ if [ "$running_version" != "$on_disk_version" -a "$running_version ()" != "$on_disk_version" ]; then
echo "WARNING: Running kernel does not match on-disk kernel image: [$running_version != $on_disk_version]"
exit $WARNING
fi
More information about the Pkg-nagios-devel
mailing list