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@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-ker...@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-ker...@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@nautilus:~# ./check_running_kernel OK: Running kernel matches on disk image: [Linux version 6.1.0-7-arm64 (debian-ker...@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@nautilus:~# Cheers, weasel -- | .''`. ** Debian ** Peter Palfrader | : :' : The universal https://www.palfrader.org/ | `. `' Operating System | `- https://www.debian.org/