[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
parsing bug in hobbit-clients.cfg
- To: xymon (at) xymon.com
- Subject: parsing bug in hobbit-clients.cfg
- From: Elmar Heeb <heeb (at) phys.ethz.ch>
- Date: Fri, 19 Nov 2010 12:53:44 +0100
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10
Hi
Suppose you have the following entry in hobbit-clients.cfg:
HOST=blog.example.com,example.com
PROC apache
then the PROC test will be ignored for example.com. If the two hosts
are reversed, i.e.
HOST=example.com,blog.example.com
PROC apache
then the PROC test will be done for both hosts. I tried with a few
variations on this and it appears that any later string in the comma
separated list will be ignored if it is a substring of a string that
appeared earlier. The same goes for EXHOSTS and probably most other
selectors.
This bug is present in at least versions 4.3.0 beta2 (from Debian
lenny-backports) and 4.2.0 (from Debian lenny).
-- Elmar
--
Dr. Elmar S. Heeb <heeb (at) phys.ethz.ch> support: +41 44 633 26 68
IT Services Group, HPT D 19 voice: +41 44 633 25 91
Department of Physics, ETH Zurich mobile: +41 79 628 75 24
CH-8093 Zurich, Switzerland http://nic.phys.ethz.ch/
-----------------------------------------------------------------
Please consider the environment before printing this e-mail