Xymon Mailing List Archive search

Macro confusion

list Steve Coile
Fri, 6 Mar 2015 14:59:09 -0500
Message-Id: <CAHr=user-6b22daef3bfa@xymon.invalid>

This also works:

HOST=* $H SERVICE=conn

So it appears that the parser specifically doesn't like macros referenced
at the beginning of a line if they aren't the only thing on the line?


-- 

*Steve Coile*Senior Network and Systems Engineer, McClatchy Interactive
<http://www.mcclatchyinteractive.com/>;
Office: XXX-XXX-XXXX | Mobile: XXX-XXX-XXXX | Fax: XXX-XXX-XXXX

On Fri, Mar 6, 2015 at 2:46 PM, Steve Coile <user-a2e2f9aff0d1@xymon.invalid
wrote:
Given two different, but trivial alerts.cfg files:

--- file 1 ---
$H=HOST=a,b

SERVICE=conn $H

--- file 2 ---
$H=HOST=a,b

$H SERVICE=conn

---

The first file will match hosts a and b but not c; the second file will
match nothing.  Take "SERVICE=conn" out of file 2, it then properly matches
a and b but not c.

What gives?

--

*Steve Coile*Senior Network and Systems Engineer, McClatchy Interactive
<http://www.mcclatchyinteractive.com/>;
Office: XXX-XXX-XXXX | Mobile: XXX-XXX-XXXX | Fax: XXX-XXX-XXXX