[Pkg-nagios-devel] Bug#991184: check_running_kernel script fails with lz4 compressed kernels

Andrew Shark ashark at linuxcomp.ru
Fri Jul 16 17:38:36 BST 2021

Package: nagios-plugins-contrib
Version: 21.20170222
User: Andrew Shark
Tags: patch
With kernels that use lz4 compression, such as from linux-image-5.9.0-0.bpo.5-cloud-amd64 package, the check_running_kernel script (that is contained in nagios-plugins-contrib) fails with the following error:
root at server# /usr/lib/nagios/plugins/check_running_kernel
UNKNOWN: Failed to get a version string from image /boot/vmlinuz-5.9.0-0.bpo.2-cloud-amd64

There is a similar bug in ubuntu: https://bugs.launchpad.net/ubuntu/+source/nagios-plugins-contrib/+bug/1918618
And the patch is: https://launchpadlibrarian.net/527369842/check_running_kernel.patch

Debian should use the same patch to support such lz4 compressed kernels.

To identify the compression type, you can use the script  by Stephen Kitt from here:

More information about the Pkg-nagios-devel mailing list