BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} Warn rule not working
On Mon, 2006-04-24 at 20:55, Ryan Novosielski wrote:
>
> Can anyone tell me if there's something wrong with this? There was a
> problem on Saturday morning and I was not paged. Am I confused about
> syntax in some way? You CAN have wraparound times, correct?
>
> ###
> # On-call paging for the unfortunate soul of the week
> ###
> hg-campus;;conn disk ssh volchk;;1-5;1700-0900;ep-oncall-email
> ep-oncall-pager:~10-10
> hg-campus;;conn disk ssh volchk;;6-0;*;ep-oncall-email
> ep-oncall-pager:~10-10
>
> Appreciate any help from the masters. :)
>
> (obviously the hg-campus group is defined -- and the only thing in BBOUT
> is a bunch of random instances of partial messages received)
The range specification of time and days of the week need to be in
ascending order. In other words, the start time (or day) needs to be
lower than the end and will not "wrap round".
To work as you want, I would rewrite those rules as:
hg-campus;;conn disk ssh volchk;;1-5;0000-0900 1700-2359;
ep-oncall-email ep-oncall-pager:~10-10
hg-campus;;conn disk ssh volchk;;0 6;*;ep-oncall-email
ep-oncall-pager:~10-10
In the first rule, the time is broken into two ranges. In the second,
the days of the week are given as two values (Sunday and Saturday)
instead of a range.
Cheers, Phil.
--
We have only two things to worry about: That things will never get
back to normal, and that they already have.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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