[Xymon] Combining Macros in alerts.cfg EXHOST?

Root, Paul Paul.Root at CenturyLink.com
Tue Nov 27 21:38:00 CET 2012


You don't need the %(...) stuff. You are already wildcarding it in the macro. 

HOST=* EXHOST=$VIP,$NOPAGE ...


Paul Root    - Senior Engineer
Managed Services Systems - CenturyLink



> -----Original Message-----
> From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
> Behalf Of Betsy Schwartz
> Sent: Tuesday, November 27, 2012 2:33 PM
> To: xymon at xymon.com
> Subject: [Xymon] Combining Macros in alerts.cfg EXHOST?
> 
> I'm trying to make my alerts.cfg a lot simpler.
> 
> I've got two macros defining groups of hosts. To simplify slightly:
> 
>         $NOPAGE=%(^*.eng|^netmon2).example.com
>         $VIP=%(^web|^ftp|^mail-relay).example.com,web-vip,mail-vip
> 
> Each macro works by itself when I use it in a rule. However I want to
> make a rule that groups these two together, something like so:
> 
>         HOST=* EXHOST=%($VIP,$NOPAGE) SERVICE=$SYSENG
>          include syseng.escalation.cfg
> 
> I'm not getting this to work , with various combinations :
>     %($NOPAGE,$VIP)
>     %($NOPAGE|$VIP)
> 
> The rules are catching hosts in $NOPAGE but not in $VIP
> I could make a third combined group, but since I've got other rules
> that just apply to $VIP or $NOPAGE it would be nice to be able to do
> this
> 
> thanks for any clues
> Betsy
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon



More information about the Xymon mailing list