Customising message subject in email alerts
18 Oct
2012
18 Oct
'12
8:34 a.m.
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
19 Oct
19 Oct
1:48 p.m.
xymon alert emails include the URL:
"See http://xymon.example.com/xymon-cgi/svcstatus.sh?HOST=webapps-cf4.bo3.e-dialo..."
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.
4996
Age (days ago)
4997
Last active (days ago)
1 comments
2 participants
participants (2)
-
abs@shadymint.com
-
betsy.schwartz@gmail.com