[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Why BBSVCNAME,BBHOSTSVC invalid in my alert script?



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