[Xymon] Macro confusion

Steve Coile scoile at mcclatchyinteractive.com
Fri Mar 6 20:59:09 CET 2015


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: 919-861-1247 | Mobile: 919-622-5369 | Fax: 919-861-1300

On Fri, Mar 6, 2015 at 2:46 PM, Steve Coile <scoile at mcclatchyinteractive.com
> 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: 919-861-1247 | Mobile: 919-622-5369 | Fax: 919-861-1300
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150306/eb099083/attachment.html>


More information about the Xymon mailing list