BB Unix Network Monitor - Message

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

RE: {bb} Customizing the wording of BB alerts



Sure, but you'd have to write a custom ext/pg script.  Read up on
http://bb4.org/bb/help/bb-man.html#4.8

While it's mostly used for writing a shorter msg for pagers, it can be
used as a regular alert as well.

Here's an example of mine... It looks for an alert on only certain
machines and emails the pagers:

if [ "$BBTMP" = "" ];
then
        echo "BB environment not set !!!"
                exit 1
                fi

        echo $BBHOSTNAME | grep -iq "^[lh]pc"
        if [ $? = 0 ]; then
                /home/bb/nodestat.sh $BBHOSTNAME
                if [ $? = 1 ]; then
                        exit 0
                fi
        fi

        if [ "$RECOVERED" = "1" ];
        then    {
                echo "!BB - ${ACKCODE}! *Recovery* $BBSVCNAME on
$BBHOSTNAME is $BBCOLORLEVEL. Was down $DOWNSECS." | $MAIL "BB -
*$BBCOLORLEVEL* - $BBHOSTSVC" "$RCPT"
                exit 0
                }
        else
                {
                date >> /home/bb/pagelog.txt
                echo "AckCode: ${ACKCODE}" >> /home/bb/pagelog.txt
                echo "BBSVCNAME: ${BBSVCNAME}" >> /home/bb/pagelog.txt
                echo "BBHOSTNAME: ${BBHOSTNAME}" >> /home/bb/pagelog.txt
                echo "BBCOLORLEVEL: ${BBCOLORLEVEL}" >>
/home/bb/pagelog.txt
                echo "!BB - ${ACKCODE}! $BBSVCNAME on $BBHOSTNAME is
$BBCOLORLEVEL." | $MAIL "BB - *$BBCOLORLEVEL* - $BBHOSTSVC" "$RCPT"
                exit 0
                }
        fi


-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com] On Behalf Of Joel D.
Kinard
Sent: Saturday, March 26, 2005 9:23 PM
To: bb@bb4.com
Subject: {bb} Customizing the wording of BB alerts

Hello.  Could anyone tell me if there is a way to customize the wording
of BB alerts?  Cryptic messages like the following are hard to decipher
at a glance at 4:00am in the morning (or at any other time):

"Fr:bb@domain.com (!BB - 1470917! ftp.domain.com.ftp - 721168215128069
[1470917] ftp.domain.com.ftp red Fri CB#:1470917 at 4:31 am Fri Mar 4"

I would prefer it be able to say something simpler and more explicit,
like:

"The FTP server is not responding to a Ping signal" , or "The Microsoft
Exchange Information Store service is stopped", and give the date and
time of the alert.

Can I configure BB to do that?

Thanks!
Joel Kinard
03/27/05



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.



--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index