<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 25 January 2014 00:49, Shackelford, Ken <span dir="ltr"><<a href="mailto:ken.shackelford@siemens.com" target="_blank">ken.shackelford@siemens.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">






<div>
<font face="Calibri"><span style="font-size:11pt">
<div>Hello,</div>
<div> </div>
<div>        I have a situation where I’m receiving duplicate alert E-mail for most of my monitored devices.  </div>
<div>For example, with the following configuration lines:</div>
<div> </div>
<div><font color="#00B0F0">$B-list-brn-emea=%(Ballerup-w</font></div></span></font></div></blockquote><div> </div><div><snip></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><font face="Calibri"><span style="font-size:11pt"><div><span style="color:rgb(0,176,240);font-size:11pt">$B-list-grn-emea=%(Ballerup-w-</span><span style="color:rgb(0,176,240);font-size:11pt">plnet</span></div></span></font></div>

</blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><font face="Calibri"><span style="font-size:11pt">
<div><span style="font-size:11pt">Now, if, for example the device Ballerup-w-plnet goes red, I get two mails with identical headers:</span></div></span></font></div></blockquote><div><br></div><div>Yes, "ballerup-w-plnet" matches both "ballerup-w" and "ballerup-w-plnet", because it's a substring match.  You would also get a match on "ballerup-w" for a hostname of "something-ballerup-w".  If you want it to match exactly, you need to anchor it to the start and end of the string, using "^" for the start, and "$" for the end.  For example:</div>

<div><br></div><div>$somelist=%^(host1|host2|host3)$</div><div><br></div><div>This means, in English, "start of string, immediately followed by one of host1, host2, host3, immediately followed by end of string".</div>

<div><br></div><div>With your problem, you probably don't need anchoring to the start, because the only ambiguity is at the end of the hostname ("ballerup-w" vs "ballerup-w-plnet").  Nevertheless, to future-proof, you probably should anchor to the start of the string.</div>

<div><br></div><div><div style="font-family:Calibri;font-size:15px"><font color="#00b0f0">$B-list-brn-emea=%</font><span style="background-color:rgb(255,255,255)"><font color="#ff0000">^</font></span><font color="#00b0f0">(Ballerup-w|</font><font color="#00b0f0">Barcelona-w|Berlin-w|Bilbao-w|</font><font color="#00b0f0">Bonn-w|Capelle-w|CastlePark-w|</font><font color="#00b0f0">Essen-w|Goeppingen-w|Hamburg-</font><font color="#00b0f0">w|Hannover-w|Hengelo-w|</font><font color="#00b0f0">Huizingen-w|Kista-w|</font><font color="#00b0f0">Klagenfurt-w|Leuven-LMS-w|</font><font color="#00b0f0">Lindau-w|Linz-w|Madrid-w|</font><font color="#00b0f0">Manchester-w|Milano-w|Modena-</font><font color="#00b0f0">w|Molndal-w|Moscow-w|Munich-w|</font><font color="#00b0f0">Nuernberg-w|Orbassano-w|</font><font color="#00b0f0">Prague-w|Rheinfelden-w|s-</font><font color="#00b0f0">Hertogenbosch-w|Solihull-w|</font><font color="#00b0f0">StPriest-w|Stuttgart-w|</font><font color="#00b0f0">Stuttgart-TCNO-w|Toulouse-w|</font><font color="#00b0f0">ToulouseKineo-w|Treviso-w|</font><font color="#00b0f0">Vejle-w|Velizy-w|Warsaw-w|</font><font color="#00b0f0">Wolfsburg-w|Zurich-w)</font><font color="#ff0000" style="background-color:rgb(255,255,255)">$</font></div>

<div style="font-family:Calibri;font-size:15px"><div style="font-family:arial;font-size:small"><br></div><div><span style="font-family:arial;font-size:small">and</span><br></div></div><div style="font-family:Calibri;font-size:15px">

<div><div style="font-family:arial;font-size:small"><br></div></div><div><span style="color:rgb(0,176,240)">$B-list-grn-emea=%</span><font color="#ff0000">^</font><span style="color:rgb(0,176,240)">(Ballerup-w-</span><span style="color:rgb(0,176,240)">plnet|Barcelona-w-plnet|</span><span style="color:rgb(0,176,240)">Bilbao-w-plnet|Bonn-w-plnet|</span><span style="color:rgb(0,176,240)">CastlePark-w-plnet|Goeppingen-</span><span style="color:rgb(0,176,240)">w-plnet|Hamburg-w-plnet|</span><span style="color:rgb(0,176,240)">Hannover-w-plnet|Hengelo-w-</span><span style="color:rgb(0,176,240)">plnet|Huizingen-w-plnet|Kista-</span><span style="color:rgb(0,176,240)">w-plnet|Klagenfurt-w-plnet|</span><span style="color:rgb(0,176,240)">Linz-w-plnet|Madrid-w-plnet|</span><span style="color:rgb(0,176,240)">Manchester-w-plnet|Milano-w-</span><span style="color:rgb(0,176,240)">plnet|Modena-w-plnet|Molndal-</span><span style="color:rgb(0,176,240)">w-plnet|Moscow-w-plnet|Munich-</span><span style="color:rgb(0,176,240)">w-plnet|Nuernberg-w-plnet|</span><span style="color:rgb(0,176,240)">Orbassano-w-plnet|Prague-w-</span><span style="color:rgb(0,176,240)">plnet|Rheinfelden-w-plnet|s-</span><span style="color:rgb(0,176,240)">Hertogenbosch-w-plnet|</span><span style="color:rgb(0,176,240)">Solihull-w-plnet|StPriest-w-</span><span style="color:rgb(0,176,240)">plnet|Stuttgart-w-plnet|</span><span style="color:rgb(0,176,240)">Stuttgart-TCNO-w-plnet|</span><span style="color:rgb(0,176,240)">Toulouse-w-plnet|Treviso-w-</span><span style="color:rgb(0,176,240)">plnet|Vejle-w-plnet|Velizy-w-</span><span style="color:rgb(0,176,240)">plnet|Warsaw-w-plnet|</span><span style="color:rgb(0,176,240)">Wolfsburg-w-plnet|Zurich-w-</span><span style="color:rgb(0,176,240)">plnet)</span><font color="#ff0000">$</font><br>

</div></div></div><div style="font-family:Calibri;font-size:15px"><div style="font-family:arial;font-size:small"><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div></div></div></div>