On Tue, 9 Oct 2001, Andrew Ryan wrote:

> I believe from reading the following alert code (0.99.2) that if a service 
> is defined to only alert during a certain period, and the service fails 
> during that period, but comes back up outside of the alert period, that no 
> upalert will be sent.
> 
> For example, if I am correct, let's say your service only alerts you from 
> 9am-5pm M-F, and you get a failure at 4:30PM on Monday. If the service 
> comes back up at 5:30PM on Monday, no upalert is generated.
> 
> If I am correct, this seems like a bug, or at least unexpected 
> behavior.  Can someone confirm/deny this?

having no alert sent during a period which is not specified is certainly
not a bug, that's exactly how it's supposed to work. you either want to
suppress an alert during a time or you don't, and that's what the code
does. though i don't believe it is a bug, maybe there is room for an
added variable to control the behavior of upalerts in situations where
they happen when there are no defined periods, something to the effect of
"never suppress an upalert".

if you look at the code, all the alert definitons are stored in a hash
keyed on the period in which they should occur. if no period is defined,
then no alerts will be sent.


Reply via email to