BB Unix Network Monitor - Message

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

Re: {bb} initial page delay



<SNIP>

>  Am I missing something?

Yes.  The bbwarnrules.cfg is fall through, as in every rule is tested
against.  Every rule that matches the test you set to an alarm value
paged.  The first one did nothing since no repicient is specified, but
the one down below it did, as did the catchall recipient, and the
"Everyone" rule, if the server is in hg-hostedservers.  So, two
things:  Your first rule does nothing, get rid of it.  Since there is
no recipient noted, it's not even counted, really.  Secondly, if you
want a page delay of 15 minutes set in the bbwarnrules.cfg, you'll
have to set that for each rule that you want it used on.

(However, you do have options.  If you are using bbgen, you can set in
your bb-hosts file that a test shouldn't go red for a specific number
of tests, using the badTEST directive.  Like this:

1.2.3.4     host1.domain.com     # test1 test2 test3 badtest1:1:1:3

This will cause host1.domain.com to go yellow after 1 failure of
test1, but not go red until test1 fails three times, which is 15
minutes if you're using the default 300 second delay between tests.)

If you don't use that, or if you don't want to have to put a badTEST
directive in for every single test you're using (including the
defaults, because you would need one for cpu, disk, log, etc), then
you'll have to add a ~15 to  the end of every page rule in
bbwarnrules.cfg.

Remember, when you're writing a paging rule, make it as specific to
the server(s)/test(s) that you're trying to match as you can.  It may
not be possible to cover all servers and/or tests in one rule, even in
the same host group.  Don't worry if you feel like you have to write
44 lines to get one host group paging correctly.  Sometimes it takes
that.
 
> There was mention of a bug with this syntax, but that may have been in
> an older version?  Anyone have details on that?
> 
> Here is the relevant portion of my bbwarnrules.cfg file:
> ------------------------------
> # Don't page unless something is down for 15 minutes.
> *;;*;;*;*;*:~15
> 
> # email admin about everything (except things explicitly
> # excluded below)
> *;;*;;*;*;admin@abc.com
> 
> # Big Brother Pagers
> # See /etc/aliases for the proper e-mail addresses. To change who pages
> go to, modify those aliases.  Don't change this.
> #
> #Next 5 lines are the default:
> #Paul
> hg-hostgroup1;;*;;*;*;ext-ex4-btipager_one admin@abc.com
> #Rob
> hg-hostgroup2;;*;;*;*;ext-ex4-btipager_two admin@abc.com
> #Jason
> hg-hostgroup3;;*;;*;*;ext-ex5-btipager_three admin@abc.com
> #Kevin
> hg-kevin;;*;;*;*;ext-ex4-btipager_four admin@abc.com
> #Neal
> hg-neal;;*;;*;*;ext-ex4-btipager_five admin@abc.com
> #Mark K.
> hg-mark;;*;;*;*;ext-ex4-btipager_six admin@abc.com
> 
> #Everyone
> hg-hostedservers;;*;;*;*;ext-ex4-btipager_one ext-ex4-btipager_two
> ext-ex4-btipager_three admin@abc.com

-- 
Regards,
Ben Pitzer
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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