<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">All,<br>
      <br>
      It's not a problem preventing functionality in this case, but %
      patterns match using regular expressions not wildcards.<br>
      <br>
      The patterns aren't anchored by default (i.e. they match a
      substring), so in fact the pattern %(server*|server2*) will match
      any name which includes the string "serve" (optionally followed by
      0 or more "r" characters) or "server" (optionally followed by 0 or
      more "2" characters) - which is already matched by the first
      pattern. So for example "abcserve123" will match.<br>
      <br>
      If you wanted to do anchored matching (i.e. not substrings) then
      the following regular expression would be the equivalent for a
      wildcard pattern:<br>
      %(^server.*|^server2.*)<br>
       or more compact:<br>
      %^server2?.*<br>
      <br>
      <a class="moz-txt-link-freetext" href="http://www.regular-expressions.info/">http://www.regular-expressions.info/</a> is a useful resource<br>
      <br>
      David.<br>
    </div>
    <blockquote
cite="mid:CAOnF4RC3F=qc3ZyL4-aC8veHbnhp0SHb5s_6Kc5xt9q-qjjbbg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      I do it like this:<br>
      <br>
      HOST=%(server*|server2*)<br>
              MAIL <a moz-do-not-send="true"
        href="mailto:coreitstaff@ucsd.edu">coreitstaff@ucsd.edu</a>
      EXSERVICE=smtp REPEAT=999999 RECOVERED<br>
      <br>
      Thanks,<br>
      Larry Barber<br>
      <br>
      <br>
      <div class="gmail_quote">On Thu, Jul 12, 2012 at 4:29 PM,
        Balderston, David <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:dbalders@ucsd.edu" target="_blank">dbalders@ucsd.edu</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          Hey,<br>
          <br>
          I need some help to ignore this service.  Have tried many
          different ways of putting this in the code, but nothing seems
          to work.  Trying to ignore smtp for one host because it alerts
          every time it turns on to send an email.  Here is what i have
          in the alerts.cfg:<br>
          <br>
          HOST=%(server*|server2*)<br>
                  IGNORE HOST=server* SERVICE=smtp<br>
                  MAIL <a moz-do-not-send="true"
            href="mailto:coreitstaff@ucsd.edu">coreitstaff@ucsd.edu</a>
          REPEAT=999999 RECOVERED<br>
          <br>
          So the way i understand this is that it should be ignoring
          smtp but still emailing about the other services.  If anyone
          has any ideas on what i may be doing wrong that would be
          great.<br>
          <br>
          Thanks,<br>
          <br>
          David Balderston<br>
          Core Bio Services<br>
          <a moz-do-not-send="true" href="mailto:dbalders@ucsd.edu">dbalders@ucsd.edu</a><br>
          <br>
          <br>
          <br>
          <br>
          _______________________________________________<br>
          Xymon mailing list<br>
          <a moz-do-not-send="true" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
          <a moz-do-not-send="true"
            href="http://lists.xymon.com/mailman/listinfo/xymon"
            target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Xymon mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>
<a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission          <a class="moz-txt-link-freetext" href="http://ausport.gov.au">http://ausport.gov.au</a>
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
<a class="moz-txt-link-abbreviated" href="mailto:david.baldwin@ausport.gov.au">david.baldwin@ausport.gov.au</a>          Leverrier Street Bruce ACT 2617
</pre>
  <br>
<hr>
Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au">www.ausport.gov.au</a>
<br><br>
<font size="-2" face="arial">This message is intended for the addressee named and may contain confidential and privileged information.  If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful.  If you receive this message in error, please delete it and notify the sender.</font>
<hr>
</body>
</html>