[Pkg-nagios-devel] Bug#1033791: #1033791: check_running_kernel fails to find version on bookworm/armhf as well
Holger Levsen
holger at layer-acht.org
Thu Jul 13 20:58:17 BST 2023
control: retitle -1 check_running_kernel fails to find version on bookworm/(arm64|armhf)
thanks
hi,
I can confirm this bug affects armhf as well:
holger at jtx1a:~$ /usr/lib/nagios/plugins/check_running_kernel
WARNING: Running kernel does not match on-disk kernel image: [Linux version 6.1.0-10-arm64 (debian-kernel at lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP Debian 6.1.37-1 (2023-07-03) != Linux version 6.1.0-10-arm64 (debian-kernel at lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) # SMP Debian 6.1.37-1 (2023-07-03)]
holger at jtx1a:~$ dpkg -l |grep linux-image ; dpkg --print-architecture ; uname -a
ii linux-image-5.10.0-23-arm64:arm64 5.10.179-1 arm64 Linux 5.10 for 64-bit ARMv8 machines (signed)
ii linux-image-6.1.0-10-arm64:arm64 6.1.37-1 arm64 Linux 6.1 for 64-bit ARMv8 machines (signed)
ii linux-image-6.1.0-9-arm64:arm64 6.1.27-1 arm64 Linux 6.1 for 64-bit ARMv8 machines (signed)
ii linux-image-arm64:arm64 6.1.37-1 arm64 Linux for 64-bit ARMv8 machines (meta-package)
armhf
Linux jtx1a 6.1.0-10-arm64 #1 SMP Debian 6.1.37-1 (2023-07-03) aarch64 GNU/Linux
I can also confirm the patch from
https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1033791;filename=0001-Extend-fix-for-on-disk-version-detection-on-Bookworm.patch;msg=15
to be working:
holger at jtx1a:~$ sudo sed -i "s#grep 'Linux version' | head -n1#grep 'Linux version' | tail -n1#" /usr/lib/nagios/plugins/check_running_kernel
holger at jtx1a:~$ /usr/lib/nagios/plugins/check_running_kernel
OK: Running kernel matches on disk image: [Linux version 6.1.0-10-arm64 (debian-kernel at lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP Debian 6.1.37-1 (2023-07-03)]
And this also affects armhf systems running with an arm64 kernel:
holger at virt64c:~$ /usr/lib/nagios/plugins/check_running_kernel
WARNING: Running kernel does not match on-disk kernel image: [Linux version 6.1.0-10-arm64 (debian-kernel at lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP Debian 6.1.37-1 (2023-07-03) != Linux version 6.1.0-10-arm64 (debian-kernel at lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) # SMP Debian 6.1.37-1 (2023-07-03)]
holger at virt64c:~$ sudo sed -i "s#grep 'Linux version' | head -n1#grep 'Linux version' | tail -n1#" /usr/lib/nagios/plugins/check_running_kernel
holger at virt64c:~$ /usr/lib/nagios/plugins/check_running_kernel
OK: Running kernel matches on disk image: [Linux version 6.1.0-10-arm64 (debian-kernel at lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP Debian 6.1.37-1 (2023-07-03)]
holger at virt64c:~$ dpkg -l |grep linux-image ; dpkg --print-architecture ; uname -a
ii linux-image-5.10.0-23-arm64:arm64 5.10.179-1 arm64 Linux 5.10 for 64-bit ARMv8 machines (signed)
ii linux-image-6.1.0-10-arm64:arm64 6.1.37-1 arm64 Linux 6.1 for 64-bit ARMv8 machines (signed)
ii linux-image-6.1.0-9-arm64:arm64 6.1.27-1 arm64 Linux 6.1 for 64-bit ARMv8 machines (signed)
ii linux-image-arm64:arm64 6.1.37-1 arm64 Linux for 64-bit ARMv8 machines (meta-package)
armhf
Linux virt64c 6.1.0-10-arm64 #1 SMP Debian 6.1.37-1 (2023-07-03) aarch64 GNU/Linux
--
cheers,
Holger
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org
⢿⡄⠘⠷⠚⠋⠀ OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
⠈⠳⣄
We can send billionaires to space but not kids to fully funded public schools.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-devel/attachments/20230713/cb4f0448/attachment.sig>
More information about the Pkg-nagios-devel
mailing list