BB Unix Network Monitor - Message

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

Re: {bb} How to control yellow alerts via email/page



I think that you're on the right track. The problem, as I
understand it, is that all your recipients are e-mail
addresses and you want to suppress yellow alerts to some
of them. To do that, you need to create a custom paging
script that ignores yellow alerts and use that for the
required recipients.

To do this, make a copy of the example script "ex1" in
the BBHOME/ext/pg directory (I'll call it "mypscr") and
add logic that will exit the script if the colour is
yellow. i.e.

  if [ "$BBCOLORLEVEL" = "yellow" ]
  then
        exit 0
  fi

You can remove "yellow" from the pagelevelsmail token (it's not
going to do anything) and configure recipients like:

  pg-bigbros:    ext-mypscr-adm-page@localhost

to drop yellow alerts to the adm-page@localhost recipient.

Cheers, Phil.



On Wed, 2005-07-06 at 12:30, Greg Parrish wrote:
> I have been around with this issue and read all the docs and the 
> archives and here is my problem.
> 
> Yellow alerts work fine but we get paged _and_ emailed but we only want 
> to receive email. All pager and cell phone addresses are email addresses 
> also but we have them defined separately.
> 
> Here is some relevant configs.
> 
> BB Server and Clients!
> pagelevels: red purple yellow
> pagelevelsmail: yellow
> 
> pagetype: EVENT
> 
> # Email sysadmins
> pg-admins-email:        admins@localhost
> # Page sysadmins
> pg-bigbros:             adm-page@localhost
> 
> hg-prd-db;;*;;1-5;0830-1700;pg-bigbros pg-admins-email
> 
> If I attempt to change the paging alias from adm-page to 
> ext-adm-page or ep-adm-page then yellow goes to email only but now red 
> breaks and we get email only there also and no pages on red. The web 
> interface works as expected at all times. Bigbro is v1.9e on RedHat 
> Linux for the client and server.
> 
> Thanks,
> Greg


-- 
An engineer is someone who does list processing in Fortran.

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