Package: hobbit-plugins
Version: 20230301
Tags: patch
Dear maintainer,
currently, the xymon "kern" check is unable to correctly grep for the
kernel version, using "grep -E" which fails at "+deb13" in the installed
trixie kernel (6.12.38+deb13-amd64).
This is easily fixed by a small alteration to the parameters, outlined
in the patch below.
Thank you for your consideration.
Best regards
Christoph Zechner
--- /usr/lib/xymon/client/ext/kern 2025-08-09 17:24:22.136509009 +0200
+++ /usr/lib/xymon/client/ext/kern 2025-08-18 15:53:34.194351080 +0200
@@ -54,7 +54,7 @@
$kernel_image_read_command = "zcat '$newest_kernel_image' | strings";
}
$kernel_image_read_command .=
- " | grep -E '^$kernel_image_release|^Linux version '";
+ " | grep -e '^$kernel_image_release' -e '^Linux version '";
my $fork_successful = open(my $pipe, '-|', $kernel_image_read_command);
unless ($fork_successful) {