BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} How can I get mail on yellow, page on red?
On Fri, 2006-05-26 at 04:11, Dave Thacker wrote:
> This will look familiar, but it's a separate question, so please read
> on.
>
> BB 1.9e-btf
>
> pagelevels: red yellow purple
> pagelevelsmail: yellow
> pagetype: event
>
> Our text pagers are reached by sending email to them. In bbwarnsetup.cfg
> I have an alias set up to our pagers:
> pg-dba: daves-pager@myserver.mydomain.com
> freds-pager@myserver.mydomain.com which are aliases to the actual
> devices.
>
> The rule(s) in question looks like this
>
> resfiles6;;pages_free;;0-6;0000-2359; pg-dba:30 sysadmin@mydomain.com:60
> resfiles6;;pages_free;;0-6;0000-2359; pg-escalate:^60-5
>
> What I'm expecting to happen:
> If the test returns yellow,
> -pg-dba should be ignored (because it's not an email address)
> -sysadmin@mydomain.com should be send an email (because it *is* an email
> address
>
> If the test turns red,
> pg-dba should not be ignored and pagers should rouse us from our
> slumber.
>
> What's actually happening:
>
> If the test turns yellow,
> The notifications are being sent to pg-dba and to sysadmin@mydomain.com
>
> So we're getting paged on yellow. According to the docs, this shouldn't
> happen:
> # If the event is of yellow or purple level, only an email notification
> # will be sent if the color is also defined in the "pagelevels" token.
>
> How can we build a rule that will mail on yellow and page on red? Are
> the email adresses in the bbwarnsetup groups entry causing this problem?
An e-mail recipient is still and e-mail recipient if it is placed
in a paging group. Groups are expanded and rules aggregated before
this determination is made. However, paging scripts that happen to
send out e-mail messages are not considered to be e-mail recipients.
So, you could use a fairly simple script as a recipient for your
text pagers and get the behaviour that you are looking for. There
are examples in the ext/pg directory which should provide you with
a starting point.
Cheers, Phil.
--
Real computer scientists don't program in assembler. They don't
write in anything less portable than a number two pencil.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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