[Xymon] Add page name to alert

David Baldwin david.baldwin at ausport.gov.au
Mon Aug 1 02:13:58 CEST 2011


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

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.
-------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110801/9a79bfda/attachment.html>


More information about the Xymon mailing list