Xymon Mailing List Archive search

Customising message subject in email alerts

2 messages in this thread

list Andy Smith · Thu, 18 Oct 2012 09:34:10 +0100 ·
Hi,

This has been talked about a few times before and I am aware that we have
the SCRIPT mechanism available for this purpose.  However, what I really
need to be able to do is annotate the subject line with the page where the
object is located.  The environment variables do not currently provide this
information and I have been playing a little with findhost.cgi to see if it
can be used within a script to extract the page.  This has not been
successful and anyway is flawed because the object may appear on multiple
pages.  I have even experimented with fetching hosts.cfg and parsing the
pages which kindof works, but there must surely be a better way?  Anyone
had similar problems or got any other suggestions?
Thanks
-- 
Andy
list Betsy Schwartz · Fri, 19 Oct 2012 09:48:03 -0400 ·
xymon alert emails include the URL:

"See http://xymon.example.com/xymon-cgi/svcstatus.sh?HOST=webapps-cf4.bo3.e-dialog.com&SERVICE=procs";

I don't remember if it's in BBALPHAMSG, but you can stitch it together
yourself from your host name and the service name, which you have as
BBHOSTNAME and BBSVCNAME

Now if you want the parent page that's trickier.