Xymon Mailing List Archive search

email link in alerts

2 messages in this thread

list Usa Ims · Tue, 10 May 2016 15:25:22 +0000 (UTC) ·
list Jeremy Laidman · Tue, 10 May 2016 22:39:27 +0000 ·
quoted from Usa Ims
On Wed, May 11, 2016 at 1:33 AM usa ims via Xymon <xymon at xymon.com> wrote:
How can I change the email URLS in the alert emails?

I want to change

See
http://narfy/xymon-cgi/svcstatus.sh?HOST=IllinoisAPI&SERVICE=IllinoisApiTest

to

See
http://192.168.1.40/xymon-cgi/svcstatus.sh?HOST=IllinoisAPI&SERVICE=IllinoisApiTest

<http://narfy/xymon-cgi/svcstatus.sh?HOST=IllinoisAPI&SERVICE=IllinoisApiTest>;
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.

An alternative might be to inject a stream editor between Xymon and your
mail client.  For instance, set MAIL like so:

MAIL="sed 's/narfy/192.168.1.40/' | $MAILC -s"

I haven't tested this, but many have used a similar technique for modifying
their email alerts, for example, stripping newlines, as mentioned here:

http://lists.xymon.com/archive/2013-March/037159.html

Cheers
Jeremy