<div dir="ltr">You could use SCRIPT instead of MAIL in alerts.cfg, and then in your script you can create whatever subject you like, where $ACKCODE env var will be populated by the alert cookie.  You might have slightly different email messages compared with those produced by the MAIL option, but I would guess that with a bit of scripting trial-and-error you should be able to get it pretty close.<div><br></div><div>J</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 September 2015 at 01:24, Mike Burger <span dir="ltr"><<a href="mailto:mburger@bubbanfriends.org" target="_blank">mburger@bubbanfriends.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Good morning, all.<br>
<br>
Using Xymon in my business environment, we're configured to send alarm emails and recovery emails to our operations center. The emails go into an alarm console, so that the NOCC has a single pane of glass for the initial alarms.<br>
<br>
I was asked, this morning, and am noticing this behavior for the first time.<br>
<br>
When Xymon sends out yellow or red alarms, there is an alarm ID number in the subject, a la:<br>
<br>
Xymon <a href="tel:%5B137502" value="+61137502" target="_blank">[137502</a>] fqdn.domain.com:http CRITICAL (RED)<br>
<br>
or in the body, a la:<br>
<br>
hostname:procs red [445232]<br>
<br>
But when the alarm recovers, the alarms that had the ID in the subject do not include that ID in the recovery email:<br>
<br>
Xymon <a href="http://fqdn.domain.com" rel="noreferrer" target="_blank">fqdn.domain.com</a> http recovered<br>
<br>
and for the alarms where the ID was in the body, that ID is changed to 0:<br>
<br>
hostname:procs red [0]<br>
<br>
What I'm being asked for is if we can include the previous alarm ID, so that they can more easily correlate the alarm/recovery pairings (and perhaps add some automation to the mix).<br>
<br>
So, I ask...is there something I can configure to make this happen or is this a coding change? If the former, what do I need to do to make it happen? If the latter, is this something the development team is willing to undertake?<br>
<br>
Thanks.<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Mike Burger<br>
<a href="http://www.bubbanfriends.org" rel="noreferrer" target="_blank">http://www.bubbanfriends.org</a><br>
<br>
"It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1<br>
<br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</font></span></blockquote></div><br></div>