[pkg-nagios-changes] [Git][nagios-team/nagios-plugins-contrib][master] Adding d/p/dsa/check_running_kernel_jammy_fix
Jan Wagner (@waja)
gitlab at salsa.debian.org
Thu Jan 19 09:43:08 GMT 2023
Jan Wagner pushed to branch master at Debian Nagios Maintainer Group / nagios-plugins-contrib
Commits:
81024a4c by Joop Boonen at 2023-01-19T09:38:49+00:00
Adding d/p/dsa/check_running_kernel_jammy_fix
Created a check_running_kernel patch for jammy, so the zstd kompressed kernel can be decompressed. Otherwise the check will fail.
- - - - -
2 changed files:
- + debian/patches/dsa/check_running_kernel_jammy_fix
- debian/patches/series
Changes:
=====================================
debian/patches/dsa/check_running_kernel_jammy_fix
=====================================
@@ -0,0 +1,22 @@
+Index: pkg-nagios-plugins-contrib/dsa/checks/dsa-check-running-kernel
+===================================================================
+--- pkg-nagios-plugins-contrib.orig/dsa/checks/dsa-check-running-kernel
++++ pkg-nagios-plugins-contrib/dsa/checks/dsa-check-running-kernel
+@@ -133,7 +133,7 @@
+ hdroff="$4"
+
+ if ! which ${filter%% *} >/dev/null; then
+- echo "UNKNOWN: filter command '$filter' missing, perhaps install xz-utils, lz4 or lzop?" >&2
++ echo "UNKNOWN: filter command '$filter' missing, perhaps install xz-utils, lz4, lzop, zstd?" >&2
+ exit $UNKNOWN
+ fi
+
+@@ -162,6 +162,8 @@
+ cat_vmlinux "$image" "\x02\x21\x4c\x18" "lz4 -dc" 0
+ # lzo compressed image
+ 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
+
+ echo "ERROR: Unable to extract kernel image." 2>&1
+ exit 1
=====================================
debian/patches/series
=====================================
@@ -45,6 +45,7 @@ dsa/status_directory
dsa/check_packages-inifile
dsa/epn
dsa/check_packages_,_fix
+dsa/check_running_kernel_jammy_fix
check_cups/ParseDateDelta
check_printer/epn
check_nfsmounts/nfs4_support
View it on GitLab: https://salsa.debian.org/nagios-team/nagios-plugins-contrib/-/commit/81024a4c0efc49452acc0fee5d1fff20be042af5
--
View it on GitLab: https://salsa.debian.org/nagios-team/nagios-plugins-contrib/-/commit/81024a4c0efc49452acc0fee5d1fff20be042af5
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20230119/8765168f/attachment-0001.htm>
More information about the pkg-nagios-changes
mailing list