Control: tags -1 wontfix

Hi Matija,

Am 26.10.25 um 01:02 schrieb Matija Nalis:
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@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@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) ()]

that's an issue introduced by using (Kernel images provided by) Proxmox. Technicaly one can argue that this could be fixed in (the monitoring-plugins-contrib package of ) Debian, I belive this should be fixed in Proxmox. There are many other situations where 3rd party kernel images can/are used and potentially this can break the version detection. As long as we introduce specific (3rd party) fixes, this makes not much sense. I'm still open for a more general solution.

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):
Technically I think this would be the wrong place to fix it. A fix should take place in the "on_disk_version" detection.

# ./check_running_kernel
OK: Running kernel matches on disk image: [Linux version 6.8.12-15-pve 
(build@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)]

With best regards, Jan.

Reply via email to