BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: {bb} Specific service notification
- To: <bb@bb4.com>
- Subject: RE: {bb} Specific service notification
- From: "Michael Vincent Pozon" <michaelp@TP.EDU.SG>
- Date: Thu, 5 Aug 2004 15:29:26 +0800
- Content-class: urn:content-classes:message
- Content-transfer-encoding: 8bit
- Content-type: text/plain; charset="us-ascii"
- Reply-to: bb@bb4.com
- Sender: owner-bb@bb4.com
- Thread-index: AcR54BdJyXlYupLoQTW8m56KPAXjOgAGqJrAADC0PmA=
- Thread-topic: {bb} Specific service notification
Hi,
Anyway to know how to determine the previous status (color) in the
sample external script provided by BB?
As far as I know, it only has the following variables:
# BBALPHAMSG - Default message defined
# ACKCODE - Notification associated ack code
# BBHOSTSVC - host in www.xxx.com.disk format
# BBHOSTSVCCOMMAS - host in www,xxx,com.disk format
# RCPT - recipient
# MACHIP - IP address of host in normalized 12 digits AAABBBCCCDDD
# BBSVCNAME - name of service
# BBSVCNUM - numeric equivalent of service (from svcerrlist in
bbwarnsetup.cfg)
# BBNUMERIC - ${MACHIP}${BBSVCNUM}
# BBCOLORLEVEL - Color level
# DOWNSECSMSG - Default recovery message
# DOWNSECS - # of seconds to recovery
# RECOVERED - 1 in recovery mode, anything else non-recovery mode
Regards,
-------------------
Sent using Office 2003, Exchange Server 2000 and Windows XP
Professional
-------------------
-----Original Message-----
From: Jasper Filon [mailto:jasper.filon@ritstele.com]
Sent: Wednesday, August 04, 2004 4:23 PM
To: bb@bb4.com
Subject: RE: {bb} Specific service notification
Out of the box, Big Brother can't page depending on color. What i do
most of the time, is using an extra paging script, checking to color of
the alert. This is extremly easy, just copy one of the examples
(/$BBHOME/ext/pg) and replace:
echo "${BBALPHAMSG}" | $MAIL "!BB - ${ACKCODE}! $BBHOSTSVC $BBCOLORLEVEL
- $BBNUMERIC" "$RCPT"
by:
if [ "$BBCOLORLEVEL" = "red" ]
then
echo "${BBALPHAMSG}" | $MAIL "!BB - ${ACKCODE}! $BBHOSTSVC
$BBCOLORLEVEL - $BBNUMERIC" "$RCPT"
fi
This way, the alert will only be send if the colorlevel is red.
Ofcourse, you will have to put an extra paging rule in for every color.
In my case:
bambi;;temp;;*;1000-2200;mycellphone
bambi;;temp;;*;0000-1000 2200-0000;ext-ex5-mycellphone
So i get pages during the day when my server temperature reaches warning
level or higher, and during the night, i only get paged at panic level
(red).
Hope this helps.
Kind regard, Jasper
-----Original Message-----
From: owner-bb@bb4.com [mailto:owner-bb@bb4.com]On Behalf Of Adam
Goryachev
Sent: woensdag 4 augustus 2004 6:54
To: bb@bb4.com
Subject: Re: {bb} Specific service notification
On Wed, 2004-08-04 at 14:21, Michael Vincent Pozon wrote:
> Hi,
> Can BB be configured in such a way that specific service alert will be
> sent to specific email ID?
> Example:
> Under the SVC column on the BB website, if the DHCP SERVER is down, it
> will send email to admin1@example.com and when TFTP server is down, it
> will send the alert to admin2@example.com
> As far as I know, BB will send alerts to any status change under the
> SVC (regardless of what service) to a list of address.
Look in the config file, you can specify any of the following:
a) All alerts for any server and any service go to admin@example.com
b) All alerts for any server and TFTP go to admin@example.com and alerts
for any other server or service go to admin2@example.com
c) All alerts for one specific server and any service go to
admin@example.com. All other alerts are handled as per other options
listed.
d) All alerts for one specific server and one specific service are sent
to admin1@example.com. All other alerts are handled as per other options
listed (including this one).
Basically, what you are asking is for two serves of (d) and you haven't
specified what else you want.
It can take some time to get your head around BB's paging rules, but it
is extremely flexible, and can do almost anything. The only thing I know
it can't do (this might have changed since I last checked) is to page
different people for different color alerts.
Hope this helps.
Regards,
Adam
--
--
Adam Goryachev
Website Managers
Ph: +61 2 8304 0000 adam@websitemanagers.com.au
Fax: +61 2 9345 4396 www.websitemanagers.com.au
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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