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

Henrik Stoerner henrik at hswn.dk
Thu Jun 21 09:22:22 CEST 2007


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




More information about the Xymon mailing list