Xymon Mailing List Archive search

descriptions in alerts

2 messages in this thread

list Kevin Flavin · Tue, 7 Feb 2006 09:09:54 -0800 ·
Hi,

 
We've inserted information using the "Descr:" tags in our bb-hosts file
that we'd like to be able to include in some of our alerts.

 
Is there a variable that we can use in our paging scripts to include
this information - or is there a way to grab this information about a
host when sending an alert?

 
Kevin Flavin
list Henrik Størner · Mon, 10 Jul 2006 11:28:14 +0200 ·
quoted from Kevin Flavin
On Tue, Feb 07, 2006 at 09:09:54AM -0800, Kevin Flavin wrote:
We've inserted information using the "Descr:" tags in our bb-hosts file
that we'd like to be able to include in some of our alerts.

Is there a variable that we can use in our paging scripts to include
this information - or is there a way to grab this information about a
host when sending an alert?
I've implemented this now for Hobbit 4.2. Scripts will get a series of
environment variables named BBH_something with the contents of the
bb-hosts definition for the host. (See the lib/loadhosts.h file for the
full list). So your script can use the $BBH_DESCR environment for this.


Regards,
Henrik