On 30/07/11 6:21 AM, Prakash, Arjun wrote:
Hi ,
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:
http://www.xymon.com/xymon/help/manpages/man5/xymon-xmh.5.html
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.
-- 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 at ausport.gov.au Leverrier Street Bruce ACT 2617
Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au