BB Unix Network Monitor - Message

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

Re: {bb} initial page delay



Good morning,

Thanks for the help. It finally works the way I want it to. I have it configured to page me after 7 minutes (effectively 10 minutes) and e-mail me without delay. That way, we won't ignore the performance problems that exist, but we can sleep through them and fix them in the morning.

The reason I got the impression that I could specify "*" as recipient is this snippet from the manual:

If a rule line starts with ! the event thats matches
	the rule line will disable notification to any
	recipient defined on that rule line.
	If the recipients field is '*' then no notification
	will occur for that event.  Here's an example

	!*;;*;;*;*;*
	
	This will in effect disable all notifications and render
	useless any other rule that you have defined :)

Unfortunately, this syntax doesn't seem to apply in all situations.

For posterity, here's my syntax:
------------------------------------------------------
# email admin about everything (except things explicitly
# excluded below)
*;;*;;*;*;admin@123.com

# Big Brother Pagers
#Paul
hg-hostgroup1;;*;;*;*;ext-ex4-btipager_one:~7-240
#Rob
hg-hostgroup2;;*;;*;*;ext-ex4-btipager_two:~7-240
. . .
------------------------------------------------------

-Jason


Ben Pitzer wrote:


On Wed, 07 Jul 2004 15:33:39 -0500, Jason Signalness <jason@btiadmin.net> wrote:


Your first rule does nothing, get rid of it.



Doesn't my first rule (*;;*;;*;*;*:~15) indicate "*" as the recipient,
as in ALL recipients? I read the rule as "for all hosts, excluding
nothing, for all services, excluding nothing, for all times, and for all
recipients set an initial delay of 15 minutes." Are you saying that
because the subsequent lines DO NOT have an initial delay specified, it
will ignore my first line? Or are you saying my syntax is incorrect?



In short, the syntax is incorrect. Everything up until the ~15 is correct, however it's moot if there is no recipient specified. You can't configure * as 'all recipients', because it doesn't know who those are. The host group and paging group sets in bbwarnsetup.cfg are not read unless specifically used in a rule, so in this case, where would it get the list of 'all recipients'? It wouldn't, sorry to say. It doesn't matter anyway, as the rule doesn't do what you're hoping anyway, that being (as I understand it) delay paging on all hosts to all recipients for 15 minutes. The rules that follow it would still trigger immediately, because BB uses fall through (test against every rule), rather than first rule triggering. You seem to be expecting BB to match on the first rule, then exit, which it doesn't. Don't worry, that's one of the tougher things for alot of folks to understand about BB paging.



The effect I am after is this: For all services and recipients, don't
page for 10 or 15 minutes if something goes red. If a service is still
red after that delay, e-mail my phone(s). Then page every 4 hours until
it's recovered.



In that case, for every rule that you write in the bbwarnrules.cfg file, you need to add ~15-360 at the end. That will cause the rule to not trigger for 15 minutes, and then only trigger every 4 hours after the initial page.



Is there any way to set a site-wide initial delay?



Unfortunately for you, no. However, the ruleset you posted is short
enough, so adding the ~15-360 after each rule should be manageable. Sorry, but that's the way it is.






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