Hi Christoph,
Thanks for your reply. I tried applying your patch to /usr/lib/xymon/client/ext/libs (and then changing 'armhf' to 'arm64'), but alas: the situation remains unchanged. Should something else be added as well?
The current kernel image on this Debian 11 Odroid system is called /boot/vmlinuz-4.9.277-arm64 in case you're interested.
Cheers,
Jaap
Quoting Christoph Zechner <user-249716582ccc@xymon.invalid>:
Hi,
we had the same problems on our pi, my colleague came up with this patch for the libs [1] check:
--- libs.orig
+++ libs
@@ -73,6 +73,11 @@
if (-x '/usr/bin/dpkg' and `dpkg --print-architecture` =~ /sparc/) {
$kernel_image_read_command = "zcat '$newest_kernel_image' | strings";
}
+ if (-x '/usr/bin/dpkg' and `dpkg --print-architecture` =~ /armhf/) {
+ my $offset = `grep --only-matching --byte-offset --binary --text '\x1f\x8b' '$newest_kernel_image' 2>/dev/null| head -1 | cut -f 1 -d :`;
+ $offset =~ s/\n//g;
+ $kernel_image_read_command = "dd if='$newest_kernel_image' skip=1 bs=$offset 2>/dev/null | gunzip 2>/dev/null | strings";
+ }
$kernel_image_read_command .=
" | egrep '^$kernel_image_release|^Linux version '";
Hope it helps!
Cheers
Christoph
[1] /usr/lib/xymon/client/ext/libs
On 28/07/2022 11:46, Jaap Winius via Xymon wrote: