Open lgrn opened 6 years ago
This is somewhat by design, from the Naemon documentation https://www.naemon.org/documentation/usersguide/objectdefinitions.html#serviceescalation: Note: If multiple escalation entries for a host overlap for one or more notification ranges, the smallest notification interval from all escalation entries is used.
So actually the expected behavior is: Since escalations are active, service settings in regards to contacts and notification intervals should presumably be overridden by what the escalation(s) dictate. The contacts should get notifications at the lowest defined escalation interval (10 min), regardless of what escalation they belong to (10 or 15 minutes) because they are overlapping. The service contact and service notification interval should not be used.
The error in your case is that Naemon does not use the lowest defined escalation interval (10 min) but uses the "original" service notification interval (5 min) instead.
Also I guess the documentation should say "multiple escalation entries for a service" instead of "host" here.
The service now has two overlapping escalations, each with unique contacts, as well as its own service-specific contact and notification_interval. Now make the service go CRITICAL.
Expected behavior: Since escalations are active, service settings in regards to contacts and notification intervals should presumably be overridden by what the escalation(s) dictate. The contacts should get notifications at separate intervals, decided by what escalation they belong to (10 or 15 minutes). The service contact and service notification interval should not be used.
What happens instead: Contacts are correctly taken from the escalations (the service contact is not notified), but the notification_interval is taken from the service, and applied for both of these contacts, instead of the notification_interval specified in the escalation.
Log example, where "CONTACT1" and "CONTACT2" are from the two escalations respectively. Service notifications are sent and logged with a 600 second interval (5 minutes, from the service object).
Escalations:
Service object:
Template:
OP5 Jira: https://jira.op5.com/browse/MON-11356