Notification delay based on service state

CMK version: 2.2.0p7
OS version: Oracle Linux 7

Hello!

We are currently having trouble finding a way to configure notification delay based on the service’s state. Our customer has the requirement to receive notification e-mails about warning-states only after 30 minutes. On the other hand he wants to receive notifications about critical-states already after 5 minutes.

Is there a way to configure the notification delay to fit these requirements? And if so, how?

Thank you very much in advance!
Sven

Hi,

there was the same question in the german part of this forum a few days ago and i think the general answer was, that it is not possible.

But you can vote for that feature here:

I would say it is possible, but not so easy to implement.
For the services you want to use you have to specify a “Periodic notifications during service problems” with a time that fits inside your CRIT time minus the the initial time for the first notification.

I will try to describe with your example.

First notification after 5 minutes.
→ “Maximum number of check attempts for service” set to 5 with 1 minute check interval → hard state after 5 minutes and first notification after 5 minutes

First rule inside notification system only accept service states with critical.


And we need to set this rule to only use the first notification.
image

Now we need to configure “Periodic notifications during service problems” for the service with 25 minutes that the second notification is sent after 30 minutes overall.
Inside the notification rule it looks similar but only with WARN instead of CRIT selected and the “Restrict to notification number” is set to “2 to 2”.

The whole configuration is not really intuitive but should work.

2 Likes

Thank you Andreas for the detailed description. I will try this out and come back to you!

So I tried it as described by you and so far, the CRIT notifications are sent as expected 5 minutes after the state change. Unfortunately the WARN notifications are also sent 5 minutes after the state change. The “Restrict notification to number” “2 to 2” doesn’t seem to work in this case.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.