<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hobbit 4.2.0 on RHEL4, BB client 1.08d on Windows XP
cici.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT
size=2>hobbit-alerts.cfg:<BR> HOST=cici
SERVICE=procs,svcs<BR>
SCRIPT /home/hobbit/server/etc/alert-svcs.sh cici</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Some environment variables,e.g,BBSVCNAME,BBHOSTSVC are used in
alert script,<BR>but they actually weren't shown as specific service or process
that triggered the alert while the service or process reached down, just generic
string procs.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>alert-svcs.sh <BR>#!/bin/sh<BR>echo "$BBHOSTSVC
reached error state" |write hobbit<BR>echo "$BBSVCNAME reached
error state" |write hobbit<BR> </FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>The result displayed as below:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Message from <A
href="mailto:hobbit@my_linux">hobbit@my_linux</A> on <no tty> at 22:21
...<BR>cici.procs reached error state<BR>EOF</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Message from <A
href="mailto:hobbit@my_linux">hobbit@my_linux</A> on <no tty> at 22:21
...<BR>procs reached error state<BR>EOF</FONT></DIV>
<DIV> </DIV><FONT size=2>
<DIV><BR>Thanks a lot.</DIV>
<DIV> </DIV>
<DIV>Regards,<BR>Case<BR></FONT></DIV></BODY></HTML>