[Xymon] Can't check kernel version on arm64 systems

Christoph Zechner zechner at vrvis.at
Thu Jul 28 12:16:07 CEST 2022


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:
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libs.patch
Type: text/x-patch
Size: 687 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20220728/687ab712/attachment.bin>


More information about the Xymon mailing list