Bug#1125392: Subject: hobbit-plugins, kern test for xymon unable to parse new kernel version format
Robert Lilja <[email protected]> Tue, 13 Jan 2026 13:28:41 +0100
| Newsgroups | gmane.linux.debian.ports.amd64 |
|---|---|
| Message-ID | <0c614160-2e0b-43ac-b523-5a30a9190e7e__19278.0187864386$1768307492$gmane$org@gmail.com> |
Package: hobbit-plugins User: [email protected] Usertags: amd64 X-Debbugs-Cc: [email protected] Version: 20230301 Severity: normal Tags: patch 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. -- System Information: Debian Release: 13.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.12.57+deb13-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages hobbit-plugins depends on: ii xymon-client 4.3.30-4 Versions of packages hobbit-plugins recommends: ii binutils 2.44-3 ii dctrl-tools 2.24-3+b1 ii libfile-slurp-perl 9999.32-2 ii libsort-naturally-perl 1.03-4 ii libyaml-tiny-perl 1.76-1 ii lsb-release 12.1-1 ii lsof 4.99.4+dfsg-2 ii sudo 1.9.16p2-3 Versions of packages hobbit-plugins suggests: pn apt-config-auto-update <none> pn bzr <none> pn cciss-vol-status <none> pn debsums <none> pn ethtool <none> pn fping <none> ii git 1:2.47.3-0+deb13u1 pn ipmitool <none> ii iproute2 6.15.0-1 pn libdbd-pg-perl <none> pn libfile-which-perl <none> pn libipc-run-perl <none> pn liblist-moreutils-perl <none> pn libmojolicious-perl <none> pn libnet-dns-perl <none> pn libnet-tftp-perl <none> pn libpoe-component-irc-perl <none> pn libpoe-component-sslify-perl <none> pn libtimedate-perl <none> pn libxml-twig-perl <none> pn megaclisas-status <none> pn mercurial <none> ii net-tools 2.10-1.3 pn ntp <none> pn nvidia-smi <none> pn smartmontools <none> pn subversion <none> -- no debconf information