Xymon Mailing List Archive search

Add page name to alert

2 messages in this thread

list Arjun Prakash · Fri, 29 Jul 2011 20:21:10 +0000 ·
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?

Thanks,
Arjun
list David Baldwin · Mon, 1 Aug 2011 10:13:58 +1000 ·
quoted from Arjun Prakash
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
user-cbbf693f2c89@xymon.invalid          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.