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?
▸ quoted from Steve Coile
--
*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
▸ quoted from Steve Coile
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