[Pkg-nagios-devel] Bug#1033791: check_running_kernel fails to find version on bookworm/arm64
Peter Palfrader
weasel at debian.org
Sat Apr 1 10:47:33 BST 2023
Package: monitoring-plugins-contrib
Version: 42.20230308
Severity: normal
Hi!
check_running_kernel fails on my arm64 system:
Linux nautilus 6.1.0-7-arm64 #1 SMP Debian 6.1.20-1 (2023-03-19) aarch64 GNU/Linux
root at nautilus:~# /usr/lib/nagios/plugins/check_running_kernel
WARNING: Running kernel does not match on-disk kernel image: [Linux version 6.1.0-7-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.20-1 (2023-03-19) != Linux version 6.1.0-7-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.20-1 (2023-03-19)]
It seems just using the image as is, with cat, would help:
root at nautilus:~# ./check_running_kernel
OK: Running kernel matches on disk image: [Linux version 6.1.0-7-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.20-1 (2023-03-19)]
--- /usr/lib/nagios/plugins/check_running_kernel 2023-03-08 11:28:49.000000000 +0100
+++ ./check_running_kernel 2023-04-01 11:35:33.643925332 +0200
@@ -164,6 +164,8 @@
cat_vmlinux "$image" "\x89\x4c\x5a\x4f\x00\x0d\x0a\x1a" "lzop -dc" 0
# zstd compressed image
cat_vmlinux "$image" "\x28\xb5\x2f\xfd" "zstd -dc" 0
+
+ cat "$image"
echo "ERROR: Unable to extract kernel image." 2>&1
exit 1
root at nautilus:~#
Cheers,
weasel
--
| .''`. ** Debian **
Peter Palfrader | : :' : The universal
https://www.palfrader.org/ | `. `' Operating System
| `- https://www.debian.org/
More information about the Pkg-nagios-devel
mailing list