[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] descriptions in alerts
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] descriptions in alerts
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Mon, 10 Jul 2006 11:28:14 +0200
- References: <B7649905A01EDB4DB39160C3636F90D38CB418@ISW01EX0501.CORP.ISWEST.NET>
- User-agent: Mutt/1.5.11
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