[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Why BBSVCNAME,BBHOSTSVC invalid in my alert script?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Why BBSVCNAME,BBHOSTSVC invalid in my alert script?
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Thu, 21 Jun 2007 09:22:22 +0200
- References: <001401c7b332$f8330b60$661fa8c0 (at) cici> <20070620134343.GA10732 (at) hswn.dk> <004701c7b3d2$8cff63c0$8914560a (at) cn.ds.amkor.com>
- User-agent: Mutt/1.5.13 (2006-08-11)
On Thu, Jun 21, 2007 at 03:05:28PM +0800, case wrote:
> Mail message would include specific information about related process or
> service' name if we use MAIL in hobbit-alerts.cfg, e.g. "&red Cisco
> Systems, Inc. VPN Service - Stopped".
>
> How can we display similar messages in alert script while a process or
> service triggers the alert?
The full status message text is passed in the BBALPHAMSG env. variable.
Process that to pick out lines with "&red", "&yellow" and so on. E.g.
echo "$BBALPHAMSG" | egrep "^&red|&yellow"
Regards,
Henrik