BB Unix Network Monitor - Message

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

Re: {bb} Some Notification Help



On Tue, 2006-10-31 at 03:31, Lozovsky, Daniel wrote:
> I have two notification questions:
> 
> 1. Is there a way to configure BB to always send the notification number
> with the last two digits being 99 ( for global acknowledgment).  Do I
> have to use an external script to accomplish this.

If you really want to change the recipient ID to 99 for all alerts,
I think that you would either have to edit bbpage.c (and recompile)
to give you that behaviour, or use a paging script. If you want to
avoid using a script, it would probably be easier to alter the
acknowledgement part of bbpage.c to just ignore the recipient ID
and "ack" for all regardless. It's not something that I'd recommend
doing though :)

> 2. How do I configure the response back acknowledgment email to also
> list the test that was acknowledged.  In bb-mailack.sh file, I have set
> a the ACK to Y, so when someone acknowledges the alert it will send them
> the notification that the alert has been acknowledged.  The mail that
> comes back has only the id of the acknowledged alert.  I wanted to also
> specify the machine and test that was acknowledged.

As long as the reply that bb-mailack.sh receives has not been too
heavily edited, the subject line will still have the host and
service information in it. You could cut that out and send it
back or even include the body of the original alert message, if
that is still available. Otherwise, if only the "ack" code is
known, re-associating that with a particular host/service would
be more complicated. As long as "mailack" is actually located on
your BBPAGER machine, it might be easiest to wait a little
after the acknowledgement is created (in the script) and then
take a peek at BBVAR/acks/acklog to identify the host and
service.

Also, as an alternative to changing the original ID to 99, you
could change bb-mailack.sh to acknowledge with 99 as the default
behaviour. That would also allow you to provide an override with
something like USER=xx on the subject line, for occasions when
you don't want to acknowledge for all.

Cheers, Phil.



-- 
Topologists are just plane folks.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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