BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} bbwarnsetup and bbwarrules stopped working
On Wed, 2006-03-22 at 19:17, Chris Naude wrote:
> List,
>
> I've run into a problem with paging(email) out on red/purple alerts.
>
> I made several changes to bbwarnrules.cfg and bbwarnsetup.cfg adding and
> removing pg- and hg- groups.
> I was basically trying to create a group of systems that pages 24/7 and a
> group of systems that pages during a certain time window.
>
> bbwarnrules.cfg:
>
> hg-prod: system1* system2*
> hg-dev: system3* system4*
> pg-ops: operator@host.com
> pg-admin: 999999@alltell.com
>
> bbwarnsetup.cfg:
>
> hg-prod;;*;;*;*;pg-admin:60 pg-ops:60
> hg-dev;;*;;*;0701-1859;pg-admin:60 pg-ops:60
> hg-dev;;*;;*;0000-0700 1900-2359;pg-ops:60
>
> The configuration seems pretty straightforward. Has anyone else done
> somethig like this?
>
> What happened after I made this change was that pg-admin stopped receiving
> pages alltogether. After this I reverted back to my backup copy of
> bbwarnrule/setup. After reverting to my working backup of these two files
> paging stopped completely. I check the BBOUT and see no errors. The
> notifications.log shows no activity at all now. This is really perplexing
> me now. It should also be noted that I am testing by running
> $BBHOME/bin/bb system1 "status system1,domain,com.msgs red `date`<p>This is a test of the
> paging system. Please ignore. -CN"
>
> Any help would be greatly appreciated.
Just a guess but, since page groups are normally at the end of the
bbwarnsetup.cfg file, you should make sure that the last rule is a
complete line (including a line terminator). I normally add a couple
of blank lines to the end of all text config files, just in case.
Also, given your requirements, I'd have structured the rules as:
hg-prod;;*;;*;*;pg-admin:60 pg-ops:60
hg-dev;;*;;*;0700-1900;pg-admin:60
hg-dev;;*;;*;*;pg-ops:60
Functionally, it should be just the same as the ones you used. For
me, it's just a little easier to understand.
Other than that, I don't see anything out of the ordinary with your
config. The best way to troubleshoot may be to move in smaller steps
between old and new and note where behaviour departs from what you
expect.
Cheers, Phil.
--
How come you never see a headline like "Psychic Wins Lottery"?
(Jay Leno)
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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