[Pkg-nagios-devel] Bug#1096198: Bug#1096198: monitoring-plugins-contrib: check_running_kernel has no idea what riscv64 kernel is running

Sebastiaan Couwenberg sebastic at xs4all.nl
Mon Feb 17 14:13:10 GMT 2025


On 2/17/25 2:43 PM, Holger Levsen wrote:
> check_running_kernel has no idea what riscv64 kernel is running:
> 
> holger at riscv64-01:~$ echo ; dpkg -l |grep -E '(linux-image|monitoring-plugins-contrib)' |grep ii; echo ; ls /boot/vm* -lart ; echo ; uname -a ; echo; echo ; /usr/lib/nagios/plugins/check_running_kernel
> 
> ii  linux-image-6.12.12-riscv64            6.12.12-1                           riscv64      Linux 6.12 for 64-bit RISC-V platforms
> ii  linux-image-riscv64                    6.12.12-1                           riscv64      Linux for 64-bit RISC-V platforms (meta-package)
> ii  monitoring-plugins-contrib             46.20240417                         riscv64      Plugins for nagios compatible monitoring systems
> 
> -rw-r--r-- 1 root root 29059584 Feb  2 21:17 /boot/vmlinux-6.12.12-riscv64
> 
> Linux riscv64-01 6.12.12-riscv64 #1 SMP Debian 6.12.12-1 (2025-02-02) riscv64 GNU/Linux
> 
> 
> WARNING: Did not find a kernel image (checked) - I have no idea which kernel I am running
> holger at riscv64-01:~$
> 
> Not sure what other info you need, but I'd be happy to help.

The plain source works a little better:

  sebastic at ricci:~/tmp/debian/nagios-plugins-contrib-46.20240417$ bash ./dsa/checks/dsa-check-running-kernel
  WARNING: Running kernel does not match on-disk kernel image: [Linux version 6.12.11-riscv64 (debian-kernel at lists.debian.org) (riscv64-linux-gnu-gcc-14 (Debian 14.2.0-12) 14.2.0, GNU ld (GNU Binutils for Debian) 2.43.50.20250108) #1 SMP Debian 6.12.11-1 (2025-01-25) != Linux version 6.12.11-riscv64 (debian-kernel at lists.debian.org) (riscv64-linux-gnu-gcc-14 (Debian 14.2.0-12) 14.2.0, GNU ld (GNU Binutils for Debian) 2.43.50.20250108) # SMP Debian 6.12.11-1 (2025-01-25)]

That one checks /boot/vmlinux-$(uname -r), the installed version only checks /boot/vmlinuz-$(uname -r).

But there is still a mismatch between the compared strings (#1 SMP vs # SMP).

Kind Regards,

Bas

-- 
  GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



More information about the Pkg-nagios-devel mailing list