#1125392 Subject: hobbit-plugins, kern test for xymon unable to parse new kernel version format

#1125392#5
Date:
2026-01-13 12:28:41 UTC
From:
To:
Dear Maintainer,


* What led up to the situation?
In Debian 13 the kern test of the hobbit-plugins for xymon monitoring
stopped working. Upon troubleshooting the reason for this was discovered
to be a regex capture of the kernel version, which was then used to
check the running kernel, this is the point of the test, but with the
addition of +deb13 as a part of the kernel version the test broke,
because the + isn't escaped in the variable that comes from the capture.

* What exactly did you do (or not do) that was effective (or
   ineffective)?
To mitigate this I just put the +deb13 outside the capture in the regex,
in addition to the amd64. I wrote that this is only for amd64, but that
is because I don't have any other architechtures to try this on, or know
how the kernel is named there so I can't speak to that. The below diff
is essentially what I did on /usr/lib/xymon/client/ext/kern
-----
49c49
<     $newest_kernel_image =~ /vmlinu[xz]-(.*)$/;
---
 >     $newest_kernel_image =~ /vmlinu[xz]-(.*)+deb13-amd64$/;
-----

* What was the outcome of this action?
The test started working again.

* What outcome did you expect instead?
I guess for the test to work to begin with.