<div dir="ltr">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.<div><br></div><div>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:</div><div><br></div><div>   Xymon [NUMBER] yadda yadda bling</div><div><br></div><div>as the xymon-mailack program looks for "Xymon [....] and extracts the NUMBER cookie value to post the acknowledgement.</div><div><br></div><div>Ralph Mitchell</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 6, 2014 at 4:57 PM, John Thurston <span dir="ltr"><<a href="mailto:john.thurston@alaska.gov" target="_blank">john.thurston@alaska.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 10/6/2014 11:50 AM, Blumenthal, Russell wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<br>
</blockquote>
<br></div></div>
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<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
DELAY_1=2&PERIOD_1=min&<u></u>MESSAGE_1=foo&NUMBER_1=509331&<u></u>HOSTNAME_1=<a href="http://bar.state.ak.us" target="_blank">bar.state.ak.us</a>&<u></u>TESTNAME_1=conn&Send_1=Send<br>
</blockquote>
<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.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
   Do things because you should, not just because you can.<br>
<br>
John Thurston    <a href="tel:907-465-8591" value="+19074658591" target="_blank">907-465-8591</a><br>
<a href="mailto:John.Thurston@alaska.gov" target="_blank">John.Thurston@alaska.gov</a><br>
Enterprise Technology Services<br>
Department of Administration<br>
State of Alaska<br>
______________________________<u></u>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/<u></u>mailman/listinfo/xymon</a><br>
</font></span></blockquote></div><br></div>