More clarity for sending Notifications (notification states & types)

Hey guys,

For some services we have defined the states = [ "Unknown", "Warning" ] and types = [ "Custom", "Problem", "Recovery" ].
Now we received a notification mail saying [RECOVERY] <SERVICE> on <HOST> is OK!.
I very well wondered about that because it thought that what I had defined notifications translates to

( “states” is “UNKNOWN” or “WARNING” ) AND ( “types” is “CUSTOM” or “PROBLEM” or “RECOVERY”)

.

In this specific notification mail “states” is “OK” and “types” is “RECOVERY”.
It seems that the “states” filter was completely skipped in this case.
So notifications should not have been sent, at least from my POV… Isn’t that correct?
When I remove the “RECOVERY” from “types” the mail is not sent (the expected behaviour!)

  • Director version (System - About): 1.8.0
  • Icinga Web 2 version and modules (System - About): 2.9.3
  • Icinga 2 version (icinga2 --version): 2.13.1-1