
CMK version: CRE 2.4.0p14
OS version: Ubuntu 24.04
Error message:
When clicking on “Setup > Events > Notifications > Events > Analyze recent notifications > Analyze Rule set with this notification,” the following errors appear in the notify.log file:
2025-10-22 15:30:43,951 [20] [cmk.base.events] Error on completing raw context: 'SITEOFHOST'
2025-10-22 15:30:43,951 [20] [cmk.base.notify] ----------------------------------------------------------------------
2025-10-22 15:30:43,951 [20] [cmk.base.notify] Analysing notification (myhost;Process cmk_test redis-server) context with 54 variables
2025-10-22 15:30:43,951 [15] [cmk.base.notify] Global rule 'notify name'...
2025-10-22 15:30:43,951 [15] [cmk.base.notify] -> does not match: This rule is disabled
2025-10-22 15:30:43,951 [40] [cmk.base.notify] ERROR:
Traceback (most recent call last):
File "/omd/sites/mysite/lib/python3/cmk/base/notify.py", line 493, in locally_deliver_raw_context
return notify_rulebased(
^^^^^^^^^^^^^^^^^
File "/omd/sites/mysite/lib/python3/cmk/base/notify.py", line 763, in notify_rulebased
why_not = rbn_match_rule(
^^^^^^^^^^^^^^^
File "/omd/sites/mysite/lib/python3/cmk/base/notify.py", line 1216, in rbn_match_rule
return events.apply_matchers(
^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/mysite/lib/python3/cmk/base/events.py", line 490, in apply_matchers
result = matcher(rule, context, analyse, all_timeperiods)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/mysite/lib/python3/cmk/base/notify.py", line 1219, in <lambda>
lambda rule, context, analyse, all_timeperiods: events.event_match_rule(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/mysite/lib/python3/cmk/base/events.py", line 503, in event_match_rule
return apply_matchers(
^^^^^^^^^^^^^^^
File "/omd/sites/mysite/lib/python3/cmk/base/events.py", line 490, in apply_matchers
result = matcher(rule, context, analyse, all_timeperiods)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/mysite/lib/python3/cmk/base/events.py", line 509, in <lambda>
lambda rule, context, analyse, all_timeperiods: event_match_servicegroups_fixed(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/mysite/lib/python3/cmk/base/events.py", line 634, in event_match_servicegroups_fixed
return _event_match_servicegroups(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/omd/sites/mysite/lib/python3/cmk/base/events.py", line 664, in _event_match_servicegroups
if context["WHAT"] != "SERVICE":
~~~~~~~^^^^^^^^
KeyError: 'WHAT'