21 Jun
2007
21 Jun
'07
7:22 a.m.
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