Why was a specific contact notified about an event on a host?

CMK version: 2.4.0p27
OS version: Debian 12.13

I am trying to figure out why a contact was notified about an event on a host, when I thought this should not happen.

There are two contact groups:

  • “all” — applied to every host
  • “b1” — only applied to specific hosts

The host in question is only in the first group:

image

I have two global notification rules sending plain email (ignore rule 0, which sends everything to a Matrix room):

  • events to the contacts for the objects
  • events to user “b1tickets” if the object is in the “b1” contact group:

My theory is that “b1tickets” should not have been notified for an event on the above host because the host is not in the “b1” contact group.

Thus, when rule #2 is evaluated, it should fail the condition “Match contact groups: b1” and thus fail, i.e. no email should be sent.

However, an email was sent (and a ticket created).

Can you please help me figure out why that happened, and how I can prevent this from happening in the future?

I could put “b1tickets” into the “b1” contact group, but then I would lose the ability to match host and service event types and thus to limit the events for which tickets are actually created. Hence the separate notification rule.

Thank you!
m

Are you using the Community (previously RAW/CRE) edition?

The contact group filter does not work in that, afaik the nagios core doesn’t provide that context so it can’t be used for filtering

it’s unfortunately hidden in the inline help.

@theyken CRE issue :slight_smile: is it possible to completely hide that filter option in Community edition?

Nice catch, thank you. I will find another way!