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?

     548     #
     549     # check each time period for pending alerts
     550     #
     551     foreach my $periodlabel (keys %{$sref->{"periods"}})
     552     {
     553         #
     554         # only send alerts that are in the proper period
     555         #
     556         next if (!inPeriod ($tmnow, 
$sref->{"periods"}->{$periodlabel}->
         {"period"}));

Reply via email to