#579739 hobbit: Broken parsing of PROC ... TEXT="..."

Package:
xymon
Source:
xymon
Description:
monitoring system for systems, networks and applications
Submitter:
Axel Beckert
Date:
2026-11-07 09:09:02 UTC
Severity:
minor
Tags:
#579739#5
Date:
2010-04-30 10:48:17 UTC
From:
To:
Adding the following two lines to a host in hobbit-clients.cfg...

        PROC test 0 1 yellow TEXT="This is a test text with double quotes"
        PROC test 0 2 yellow TEXT=This is a test text without double quotes

results in the following strings on the procs page for that host:

 "This is a test text with double quotes (found 0, req. at most 1)
 This (found 0, req. at most 2)

In the first case the leading double quote is not stripped from the
text, but without double quotes, only the first word is taken (which
would be fine if it would work with double quotes).

#579739#12
Date:
2010-05-17 19:23:57 UTC
From:
To:
tags 579739 confirmed upstream
thanks

Re: Axel Beckert 2010-04-30 <20100430104817.81A592E4D1A@snitch.localdomain>

Confirmed, easy to check with hobbitd_client --dump-config. CLASS="foo
bar" is equally affected, so this is a bug in the parser and/or the
"rule walk" mechanism. The latter is a pretty arcane stack of C
functions that I'd rather leave to upstream to debug. Bug forwarded to
the developers list.

Christoph

#579739#23
Date:
2026-10-11 09:27:54 UTC
From:
To:
I'll try to update the status of this bug report a little...

Axel Beckert schrieb am Freitag, den 30. April 2010:

The upstream tracker at sourceforge seems to no longer exist, so I
cannot see, what was tracked there :-(
But I found some discussion in the mailman archive at sourceforge:
https://sourceforge.net/p/xymon/mailman/message/25279576/
https://sourceforge.net/p/xymon/mailman/message/25280639/
https://sourceforge.net/p/xymon/mailman/message/25318288/

Especially the one in the middle is quite interesting, I'll cite it
here (before it's also lost on SF):
hmm.. I thought the syntax is

PROC test 0 2 yellow "TEXT=This is a test text without double quotes"


man hobbit-clients.cfg
[..]
PORT LOCAL=%[.:]22$ STATE=LISTEN "TEXT=SSH listener"
[..]
-------------- snipp ----------------

This is still in analysis.cfg(5):

       The  TEXT=displaytext option affects how the port appears on the "ports"
       status page. By default, the port is listed with the  local/remote/state
       rules  as  identification,  but this may be somewhat difficult to under-
       stand. You can then use e.g. "TEXT=Secure Shell" to make these ports ap-
       pear with the name "Secure Shell" instead.

       Defaults: mincount=1, maxcount=-1 (unlimited),  color="red".   Note:  No
       ports are checked by default.

       Example:  Check  that  the SSH daemon is listening on port 22. Track the
       number of active SSH connections, and warn if there are more than 5.
               PORT LOCAL=%[.:]22$ STATE=LISTEN "TEXT=SSH listener"
               PORT LOCAL=%[.:]22$ STATE=ESTABLISHED MAX=5 TRACK=ssh TEXT=SSH

I just tried this out myself:

        PROC test 0 1 yellow TEXT="This is a test text with double quotes"
        PROC test 0 2 yellow TEXT=This is a test text without double quotes
        PROC test 0 3 yellow "TEXT=This is a test text with double quotes"

which results in:

"This is a test text with double quotes (found 0, req. at most 1)
This (found 0, req. at most 2)
This is a test text with double quotes (found 0, req. at most 3)

So this works as described in the man page ("TEXT=..."), but I also
think that the first variant (TEXT="...") should also work as an
alternative (meaning that the parser should remove the leading
quotes).

I just opened an issue in the new github project:
https://github.com/xymon-monitoring/xymon/issues/624

Greetings
Roland

#579739#30
Date:
2026-11-07 09:06:32 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
xymon, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 579739@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Roland Rosenfeld <roland@debian.org> (supplier of updated xymon package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 07 Nov 2026 08:53:42 +0100
Source: xymon
Architecture: source
Version: 4.3.31-1
Distribution: unstable
Urgency: medium
Maintainer: Axel Beckert <abe@debian.org>
Changed-By: Roland Rosenfeld <roland@debian.org>
Closes: 579739 609179 867341 1007003
Changes:
 xymon (4.3.31-1) unstable; urgency=medium
 .
   * New upstream version 4.3.31.
   * This Closes: #579739, #609179, #867341, #1007003.
   * The following patches are now incorporated upstream: 03_doc-paths,
     09_hobbitclient-debian, 21_FHS-instead-FSSTND-in-example-in-man-page,
     24_hobbitclient-tmpfs, 27_hobbit_files_ifexist, 33_526176-ldap,
     42_bbcombotest-fix, 51_hardening-buildflags, 92_ntpdate_ntpdig,
     93_pcre2, 94_nousemultipart, 95_fix_tls13_banner, 96_manual-backslash,
     97_makehtml, 98_man_fb, 99_man_typos, 100_md5_bufferoverflow,
     101_rrdtool1.9, 102_ldap_url_parse, 103_openssl4.
   * 92_ntpdate_ntpdig: No longer needed, since sntp is used now.
   * Update debian/watch to point to new github upstream.
   * Use mandoc, python3 instead of man2html on building man pages.
   * Adapt makehtml.sh call in debian/rules.
   * Revert MAKEFLAGS=-j1, since dependencies are fixed upstream now.
   * Revert clientlaunch.d, tasks.d, graphs.d, xymonserver.d, xymonclient.d
     (all implemented upstream) and update 12_hobbitvars.patch.
   * Update all other patches to new version.
   * Remove debian/clean, since this is fixed upstream.
   * Update debian/upstream/metadata.
   * Add autopkgtest testsuite using upstream testsuite.
   * Install diagnostic tools to server package.
   * Revert png to gif fix (fixed upstream).
   * Install README.backfeed to xymon documentation.
   * Split 13_apache_access_local.patch out of 12_hobbitvars.patch.
   * Split 14_gifs_static.patch out of 12_hobbitvars.patch.
   * Update Headers of 12_hobbitvars.patch.
   * Remove kfreebsd support artifacts.
   * Update debian/copyright and add d/lrc.config to support exceptions.
   * Revert encoding fix for CREDITS (already UTF-8).
   * Update lintian-overrides.
   * Update Homepage.
Checksums-Sha1:
 bb97dcbb3c676fa0fb583062cae18dd2da4505c1 2161 xymon_4.3.31-1.dsc
 5240cf043e005c43d8cafbc8662ecf4fc8c87714 2648789 xymon_4.3.31.orig.tar.gz
 2298675dc211f396878bee52eb3072482ee3080f 41944 xymon_4.3.31-1.debian.tar.xz
 195ab222f4635283f3a9dd841107416a0e0b2976 9831 xymon_4.3.31-1_source.buildinfo
Checksums-Sha256:
 37cc53f77c1502f81a43f6e49f127c96a76dfbc9e1a9e213538a914c23452471 2161 xymon_4.3.31-1.dsc
 bea186d941099b89b4ca5e4c9fd4d8698f2df8782c85ec5241898189ffe0109c 2648789 xymon_4.3.31.orig.tar.gz
 a1702452edb9a0295d2c2c3ca82c92133df1c17042fa8b3e4094f5f17a198cc4 41944 xymon_4.3.31-1.debian.tar.xz
 c1843bc922fedea313ddbdc4a9e081b1fa6f2672f873b6397ca0aed600900286 9831 xymon_4.3.31-1_source.buildinfo
Files:
 be55c525a9c536329e790bfed46426d4 2161 net optional xymon_4.3.31-1.dsc
 0ba0d2723fbeccd998fd4f11b8317df6 2648789 net optional xymon_4.3.31.orig.tar.gz
 98bf2ebee7aa6d1cd2650a623f26f7ce 41944 net optional xymon_4.3.31-1.debian.tar.xz
 0815f0e9c4b4c27891b5ca0b127ca336 9831 net optional xymon_4.3.31-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEErC+9sQSUPYpEoCEdAnE7z8pUELIFAmru3+EACgkQAnE7z8pU
ELJZWhAAm2FwpAl2nKmgXWsLqZ/F9q2Pu2TqkTm/Je1uEma2ns5I02rQaQheC9hB
CnIQABHIA6f+Zj0BJtYXuAdgq7E0xTLMwd3D67UQ/6822331yNkriMlEFOwD4SRQ
58HKFKOA4hz9mYij6sPJDH5pmN1Kkr7EAdd9pqXQI8evWe+nKTew7BDIc/pQkwTQ
gH3NHnCQnvRI/WV2IfZax3jTowezP6HYMuELbaA0KFrnmILaKtn1gxTnurnF6nx6
ujEHXOMP0NlQcCODdR5UBpD1C6Az+dpSVbsGmY9R3SC+Xj4c2rTGslDDrGNUVgQt
gwabkqkjUq2LaV8JRC41O2NUb4gjzDScm8igjkAgmN+6USvxCA0K0nPlf0ieAIps
i8jkg+xZdTo52F2PjVqeXStkKZ6qI/ytOGOhfpOVUDc/jyxd1K5BU874pOLEFtKa
Vf24BWZt41/BPxwMhNv8Zb7DDcDSLNw8Cut8v1obky69gcHdFnlAJ+8t6f40XORy
jQQDpgdeuvawzFGObISc161SaaXx0/RgWcbsU4ue5JCbrH2TWCoDPNt67yZT0POf
k3KGkafz2DORPAXGgQAZWFxhNKF6L7KDkJHsshGUswFi5WQRGzgjQbE5eXh23OVi
GYzPeQE7KLpjVdpUBak9NqCQWywe8l5Q9gpeM5MLHk9mSDUJHJI=
=RTH7
-----END PGP SIGNATURE-----