<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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.<br>
<br>
Heres what is working:<br>
<tt>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)$<br>
HOST=%(cna-prod-.*)
SERVICE=*                                                                                                 
<br>
     MAIL $PRIMARY EXHOST=$UNUSED_PROD color=red REPEAT=60 RECOVERED
NOTICE format=sms                                         <br>
     MAIL $SECONDARY EXHOST=$UNUSED_PROD color=red DURATION>20
REPEAT=60 RECOVERED NOTICE format=sms<br>
     </tt><tt>MAIL <a class="moz-txt-link-abbreviated" href="mailto:support@mydomain.com">support@mydomain.com</a> color=red REPEAT=60 RECOVERED
NOTICE</tt><br>
<tt>     </tt>                                          <br>
-Charles<br>
<br>
Charles Goyard wrote:
<blockquote cite="mid20061206174659.GQ3377@cgoyard1.exp75.cvf"
 type="cite">
  <pre wrap="">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 :
  </pre>
  <blockquote type="cite">
    <pre wrap="">I offer $5 via paypal to anyone who can help me figure this out.  :-)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">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)
          </pre>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
</body>
</html>