<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">I’ve worked with KC on this issue for some time now and still have had no success.
<o:p></o:p></p>
<p class="MsoNormal">This is the result we’re getting when we test with xymond_alert.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">$ xymond_alert --test DC.Comcast disk --duration=500 <o:p></o:p></p>
<p class="MsoNormal">00007222 2017-10-11 11:46:08 Matching host:service:dgroup:page ''DC.Comcast:disk:NONE: User2/Client2' against rule line 1<o:p></o:p></p>
<p class="MsoNormal">00007222 2017-10-11 11:46:08 Failed 'PAGE=%.*User1/' (pagename not in include list)<o:p></o:p></p>
<p class="MsoNormal">00007222 2017-10-11 11:46:08 Matching host:service:dgroup:page 'DC.Comcast:disk:NONE:User2/Client2' against rule line 3<o:p></o:p></p>
<p class="MsoNormal">00007222 2017-10-11 11:46:08 *** Match with 'PAGE=%.*User2/' ***<o:p></o:p></p>
<p class="MsoNormal">00007222 2017-10-11 11:46:08 Matching host:service:dgroup:page 'DC.Comcast:disk:NONE: User2/Client2' against rule line 4<o:p></o:p></p>
<p class="MsoNormal">00007222 2017-10-11 11:46:08 *** Match with 'SCRIPT=/etc/xymon/custom/alert.sh user2@domain.com COLOR=red,yellow RECOVERED REPEAT=720 DURATION>10' ***<o:p></o:p></p>
<p class="MsoNormal">00007222 2017-10-11 11:46:08 Script alert with command '/etc/xymon/custom/alert.sh' and recipient user2@domain.com<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is a sample of alerts.cfg:<o:p></o:p></p>
<p class="MsoNormal">PAGE=%.*User1/<o:p></o:p></p>
<p class="MsoNormal">        SCRIPT=/etc/xymon/alerts/alert.sh user1@domain.com COLOR=red,yellow RECOVERED REPEAT=720 DURATION>10<o:p></o:p></p>
<p class="MsoNormal">PAGE=%.*User2/<o:p></o:p></p>
<p class="MsoNormal">        SCRIPT=/etc/xymon/custom-alerts/alert.sh User2@domain.com COLOR=red,yellow RECOVERED REPEAT=720 DURATION>10<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">User2 matches correctly but the email is still going to User1 even though we get a failed message for User1. We’ve tried deleting the User1 folder in the www folder. Restarting Xymon and the entire server and it doesn’t ever really seem
 to go away. I can see that the emails were sent in the logs. I also added the matching line number to the alert email using $CFID and the matching line points to line 1 for User1.  <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">Any more help would be appreciated.
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">Thanks, John.<br>
<br>
</span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Xymon [mailto:xymon-bounces@xymon.com] <b>On Behalf Of
</b>Root, Paul T<br>
<b>Sent:</b> Wednesday, October 11, 2017 10:22 AM<br>
<b>To:</b> KC Kuhns <kc.kuhns@executech.com>; xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] Notification Issues<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">You can use xymond_alert to test the alert system to see where it is sending.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">xymond_alert --test DC.Comcast  procs --duration=500 |grep -v Failed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif"> Xymon [<a href="mailto:xymon-bounces@xymon.com">mailto:xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>KC Kuhns<br>
<b>Sent:</b> Wednesday, October 11, 2017 9:27 AM<br>
<b>To:</b> <a href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
<b>Subject:</b> [Xymon] Notification Issues<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Good morning,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We’re using Xymon 4.3.25 and are running into a strange issue. We use Armor to monitor servers and various things at all of our clients. Our host file is setup something like this:<o:p></o:p></p>
<div style="border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt">Page User1 User One<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt">Subpage Client1 Client One<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt">8.8.8.8 DC.Google # NOCONN<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt"><o:p> </o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt">Page User2 User Two<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt">Subpage Client2 Client Two<o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt">75.75.75.75 DC.Comcast # NOCONN<o:p></o:p></span></i></b></p>
<div style="border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Each technician that we have has a page, and each client has its own subpage under the related technician. We often move clients around to different technicians so in the above example, we may decide to move Client2 to User1. When we do
 that, it seems that User2 still receives email alerts for DC.Comcast even though it has been moved under User1. When looking at the info tab for DC2, it would show only User1 and nothing tied to User2. There’s also nothing relating to that client in the alerts
 file.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there some type of cache that we need to clear when we move clients around to different technicians to prevent this? Appreciate the help.<o:p></o:p></p>
<p class="MsoNormal" align="center" style="text-align:center">This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you
 have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.<o:p></o:p></p>
</div>
</body>
</html>