Re: Add page name to alert
2011-08-01 00:13:58 GMT
A newbie question:
I have hosts categorized in pages (in hosts.cfg) and want the email alerts to show the page name in the subject. Can this be done?
It can be done, but not easily.
You need to use a script to send your e-mail alert. There are some on xymonton - http://xymonton.org/alerts
As part of your script you will need to get the page name. It is available via xymondboard/hobbitdboard command using the XMH/BBH fields:
Depending on your xymon version (4.3.0 or later/old version syntax below - substitute xymonhost for your server name - or use localhost if running on the xymon server):
xymon xymonhost "xymondboard host=$BBHOSTNAME test=info fields=XMH_PAGENAME"
bb xymonhost "hobbitdboard host=$BBHOSTNAME test=info fields=BBH_PAGENAME"
-- David Baldwin - Assistant Director, Infrastructure (acting) Information and Communication Technology Services Australian Sports Commission http://ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 david.baldwin-vENfGX7yJcD7kZZSymWMOg@public.gmane.org Leverrier Street Bruce ACT 2617
Keep up to date with what's happening in Australian sport visit www.ausport.gov.au
This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.
_______________________________________________ Xymon mailing list Xymon@... http://lists.xymon.com/mailman/listinfo/xymon