Troubleshooting "KeyError - cmk mkeventd EventServer"
This article helps troubleshoot KeyError "cmk.mkeventd.EventServer" during an upgrade.
LAST TESTED ON CHECKMK 2.3.0P1
Table of Contents
Problem
After upgrading from 2.0 to 2.1, you may face the following issue:
2022-07-03 19:55:10,202 [20] [cmk.mkeventd] mkeventd version 2.1.0p4 starting
2022-07-03 19:55:10,729 [40] [cmk.mkeventd] FATAL ERROR: Traceback (most recent call last):
File "/omd/sites/main/lib/python3/cmk/ec/main.py", line 3937, in main
config = load_configuration(settings, logger, slave_status)
File "/omd/sites/main/lib/python3/cmk/ec/main.py", line 3867, in load_configuration
logger.getChild("EventServer").setLevel(levels["cmk.mkeventd.EventServer"])
KeyError: 'cmk.mkeventd.EventServer'
Solution
Go to: Setup → Events → Event Console → Settings → Event Console: Logging and Diagnose
If the log levels look like this:
Edit the properties and reset the log level to the default settings.
The mkeventd should start now!