<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=utf-8">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks, I edited an html email script and included this line in it:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">"http://$BBSERVERWWWNAME/xymon-seccgi/acknowledge.sh?DELAY_1=120&PERIOD_1=min&MESSAGE_1=Acknowledged&NUMBER_1=$ACKCODE&HOSTNAME_1=$BBHOSTNAME&TESTNAME_1=$BBSVCNAME&SEND_1=Send";<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">However, when I click it in the email, it only brings me to the acknowledge page. Am I missing something to get it to acknowledge the specific host/test by
 using a link? <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Xymon [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Ralph Mitchell<br>
<b>Sent:</b> Monday, October 06, 2014 10:23 PM<br>
<b>To:</b> John Thurston<br>
<b>Cc:</b> xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] Auto Acknowledge alert<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">The NUMBER value is the ack cookie value that is put in the subject of alert emails.  If you configure alerts.cfg with SCRIPTs to process alerts, the cookie value is handed in via the ACKCODE environment variable.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">You'll need to make sure you pick up the most recent cookie value for any given alert, as each one overrides the previous cookie.  If you're sending out email alerts, make sure that the subject reads:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">   Xymon [NUMBER] yadda yadda bling<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">as the xymon-mailack program looks for "Xymon [....] and extracts the NUMBER cookie value to post the acknowledgement.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Ralph Mitchell<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Oct 6, 2014 at 4:57 PM, John Thurston <<a href="mailto:john.thurston@alaska.gov" target="_blank">john.thurston@alaska.gov</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">On 10/6/2014 11:50 AM, Blumenthal, Russell wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Is there a way to get a link that when clicked it will auto acknowledge<br>
an alert (after the login) with a preset message/time?<br>
<br>
What I would like to do, ideally, is have a script that emails out the<br>
information but also includes a link so that anyone that gets the email<br>
can acknowledge the alert just by clicking it.<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Well, acknowledge.sh is accessible in the xymon-seccgi path so you should be able to construct an appropriate URL to it. I quick sampling on my own server shows the following information is sent as a POST<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">DELAY_1=2&PERIOD_1=min&MESSAGE_1=foo&NUMBER_1=509331&HOSTNAME_1=<a href="http://bar.state.ak.us" target="_blank">bar.state.ak.us</a>&TESTNAME_1=conn&Send_1=Send<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><br>
The questions are, where does the NUMBER value come from, and will a GET work (or must you POST)?<br>
<br>
There is also xymon-mailack which might meet your needs.<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">DESCRIPTION<br>
xymon-mailack normally runs as an input mail-filter for the xymon user, e.g. by being called from the xymon users' procmailrc(5) file. xymon-mailack recognizes e-mails that are replies to xymond_alert(8) mail alerts, and converts the reply mail into an acknowledge
 message that is sent to the Xymon system. This permits an administrator to acknowledge an alert via e-mail.<o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="color:#888888"><br>
<br>
<span class="hoenzb">-- </span><br>
<span class="hoenzb">   Do things because you should, not just because you can.</span><br>
<br>
<span class="hoenzb">John Thurston    <a href="tel:907-465-8591" target="_blank">
907-465-8591</a></span><br>
<span class="hoenzb"><a href="mailto:John.Thurston@alaska.gov" target="_blank">John.Thurston@alaska.gov</a></span><br>
<span class="hoenzb">Enterprise Technology Services</span><br>
<span class="hoenzb">Department of Administration</span><br>
<span class="hoenzb">State of Alaska</span><br>
<span class="hoenzb">_______________________________________________</span><br>
<span class="hoenzb">Xymon mailing list</span><br>
<span class="hoenzb"><a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a></span><br>
<span class="hoenzb"><a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a></span></span><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>