[hobbit] hobbit-alerts.cfg regex/MACRO problem - solved

Charles Jones jonescr at cisco.com
Wed Dec 6 18:57:09 CET 2006


This is nuts but I tried the original fix again and this time it 
worked...I could swear that I tried this many times before and it 
definitely was not working as it should. Ah well maybe its a good thing 
I took a couple of weeks off before I looked at it again.

Heres what is working:
UNUSED_PROD=%prod-app-(2|3|4|5|6|7|8|9|10|11|12|18|20|21|22|23|24)$|prod-web-(1|2|3|4|9|10|11)$
HOST=%(cna-prod-.*) 
SERVICE=*                                                                                                  

     MAIL $PRIMARY EXHOST=$UNUSED_PROD color=red REPEAT=60 RECOVERED 
NOTICE format=sms                                        
     MAIL $SECONDARY EXHOST=$UNUSED_PROD color=red DURATION>20 REPEAT=60 
RECOVERED NOTICE format=sms
     MAIL support at mydomain.com color=red REPEAT=60 RECOVERED NOTICE
                                              
-Charles

Charles Goyard wrote:
> Hi,
>
> Try:
>
> $UNUSED_PROD1=prod-app-2|3|4||5|6|7|8|9|(10)|(11)|(12)|(18)|(20)|(21)|(22)|(23)|(24)
> $UNUSED_PROD2=prod-web-1|2|3|4|9|(10)|(11)
>
> and include both macros in you rule as two distinct regexes (separated
> with commas I guess).
>
> I did not try :).
>
>
> Charles Jones wrote :
>   
>> I offer $5 via paypal to anyone who can help me figure this out.  :-)
>>     
>
>   
>>>>> I am trying to use a regex macro to exclude a number of hosts from 
>>>>> an alert.  Here is the one I was using at first:
>>>>> $UNUSED_PROD=%prod-app-(2|3|4|5|6|7|8|9|10|11|12|18|20|21|22|23|24)|prod-web-(1|2|3|4|9|10|11)
>>>>>           
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20061206/37496c61/attachment.html>


More information about the Xymon mailing list