I’m on 2.0.0p22 (CRE) and I’m facing some issue to understand how to manage the “Restrict to notification number” params to get the Desidered escalation notification.
I notice the value of “SERVICENOTIFICATIONNUMBER” increase on each service status change even if no notification rules has sent effectively a notification to anyone.
I configured a notification rules to send an sms only on some services when they becomes CRIT or goes OK and I excluded the WARN state because I’m not interested to it during nighttime.
I added a rule to add a “Periodic notifications during service problems” after 60 minutes and another rules to notify via email “Restrict to notification number” “3 … 99999” to different conctats.
I expected that the first notification was sent when service goes to CRIT state, the second one if it cames back to “OK” or if it is still on CRIT state after an hour from the first notification and that a third notification were sent by email if no one has fixed or acked the service state within an hour from the second notification.
Instead seems that the value of “SERVICENOTIFICATIONNUMBER” increases on each service status transition between WARN or CRIT state, independently from that transition has effectively generated any kind of notification.
So if a service from “OK” goes to “WARN” and than goes to “CRIT” and backs to “WARN” I get the escalation email sent even if only 5 minutes was spent since the service was on “OK” state.
In this ways the escalation emails goes even for services that are not configured to send notification at all (ok, this can be worked aroud applying the same filter also on the escalation notification but is a duplication).
I think that the “SERVICENOTIFICATIONNUMBER” (as the “HOSTNOTIFICATIONNUMBER”) should increase only if that transition matches a notification rules.