Explore the latest product updates and best practices at our hybrid Checkmk Conference #12 from June 16-18, 2026 – Register here

Werk #7335: Fixed broken regex based hostname translation in EC

Component Event Console
Title Fixed broken regex based hostname translation in EC
Date Apr 9, 2019
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.6.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0p14 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

The hostname translation of the EC was broken since release of Check_MK 1.4.0 (caused by #3687). This issue lead to dropped events once the translation has been condifgured. The problem was visible in the mkeventd.log in the following form:

 2019-04-04 11:36:24,286 [40] [cmk.mkeventd.EventServer] Unable to parse host "HOST" ('tuple' object has no attribute 'endswith')
Traceback (most recent call last):
  File "/omd/sites/snmp/lib/python/cmk/ec/main.py", line 2787, in do_translate_hostname
    event["host"] = self.translate_hostname(event["host"])
  File "/omd/sites/snmp/lib/python/cmk/ec/main.py", line 2768, in translate_hostname
    if not regex.endswith('$'):
AttributeError: 'tuple' object has no attribute 'endswith' 

To the list of all Werks