<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, May 11, 2016 at 1:33 AM usa ims via Xymon <<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div>How can I change the email URLS in the alert emails?</div><div><br></div><div>I want to change</div><div><br></div><div dir="ltr">See <a href="http://narfy/xymon-cgi/svcstatus.sh?HOST=IllinoisAPI&SERVICE=IllinoisApiTest" rel="noreferrer" target="_blank">http://narfy/xymon-cgi/svcstatus.sh?HOST=IllinoisAPI&SERVICE=IllinoisApiTest</a></div><div dir="ltr"><br></div><div dir="ltr">to</div><div dir="ltr"><br></div><div dir="ltr">See <a href="http://narfy/xymon-cgi/svcstatus.sh?HOST=IllinoisAPI&SERVICE=IllinoisApiTest" rel="noreferrer" target="_blank">http://192.168.1.40/xymon-cgi/svcstatus.sh?HOST=IllinoisAPI&SERVICE=IllinoisApiTest</a></div></div></div></blockquote><div><br></div><div>The link is generated from the XYMONWEBHOST environment variable.  You could change it in your xymonserver.cfg file, but that will mean all of your browser links will change also.  This may not be desirable.</div><div><br></div><div>An alternative might be to inject a stream editor between Xymon and your mail client.  For instance, set MAIL like so:</div><div><br></div><div>MAIL="sed 's/narfy/<a href="http://192.168.1.40/">192.168.1.40/</a>' | $MAILC -s"</div><div><br></div><div>I haven't tested this, but many have used a similar technique for modifying their email alerts, for example, stripping newlines, as mentioned here:</div><div><br></div><div><a href="http://lists.xymon.com/archive/2013-March/037159.html">http://lists.xymon.com/archive/2013-March/037159.html</a><br></div><div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div></div>