2022-06-25 10:49:18,853 [20] [cmk.mknotifyd] -----------------------------------------------------------------
2022-06-25 10:49:18,853 [20] [cmk.mknotifyd] Check_MK Notification Spooler version 2.1.0p3 starting
2022-06-25 10:49:18,854 [20] [cmk.mknotifyd] Log verbosity: 0
2022-06-25 10:49:18,857 [20] [cmk.mknotifyd] Daemonized with PID 167872.
2022-06-25 10:49:18,859 [40] [cmk.mknotifyd] FATAL ERROR:
Traceback (most recent call last):
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/main.py", line 307, in main
run_notifyd(args, config, paths, start_time)
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/main.py", line 62, in run_notifyd
connection_manager.initialize_stunnel()
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/connection_manager.py", line 192, in initialize_stunnel
config: str = create_stunnel_config_from_mknotifyd_config(
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/connection_manager.py", line 46, in create_stunnel_config_from_mknotifyd_config
if incoming and incoming["encryption"] != "unencrypted":
KeyError: 'encryption'
2022-06-25 10:49:45,616 [20] [cmk.mknotifyd] -----------------------------------------------------------------
2022-06-25 10:49:45,616 [20] [cmk.mknotifyd] Check_MK Notification Spooler version 2.1.0p3 starting
2022-06-25 10:49:45,616 [20] [cmk.mknotifyd] Log verbosity: 0
2022-06-25 10:49:45,619 [20] [cmk.mknotifyd] Daemonized with PID 168980.
2022-06-25 10:49:45,622 [40] [cmk.mknotifyd] FATAL ERROR:
Traceback (most recent call last):
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/main.py", line 307, in main
run_notifyd(args, config, paths, start_time)
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/main.py", line 62, in run_notifyd
connection_manager.initialize_stunnel()
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/connection_manager.py", line 192, in initialize_stunnel
config: str = create_stunnel_config_from_mknotifyd_config(
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/connection_manager.py", line 46, in create_stunnel_config_from_mknotifyd_config
if incoming and incoming["encryption"] != "unencrypted":
KeyError: 'encryption'
I want to add that the notification spooler configuration is very confusing because when you configure the central site to âconnect to remote sitesâ - this configuration will also be syncâed to the remote sites. Thats not what anyone wants I guess. One has then to enable wato on the remote site, go into the spooler config and revert the config to âaccept incoming tcp connectionsâ - I donât get it.
Also, when you Save the changes on the remote site - there are âno pending changesâ so I assume the settings are not saved
After the update to 2.1.0p4 the mknotifyd worked for like 5mins and then it stopped again.
Seems thereâs something being configured which crashes it. The update fixed it but then it got changed again I guess.
2022-07-04 09:01:57,775 [20] [cmk.mknotifyd] sending command LOG;SERVICE NOTIFICATION RESULT: msteams;xxxxxxxxx;Systemd Timesyncd Time;OK;msteams;200;200
2022-07-04 09:02:17,805 [20] [cmk.mknotifyd] Configuration has changed.
2022-07-04 09:02:17,806 [40] [cmk.mknotifyd] FATAL ERROR:
Traceback (most recent call last):
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/main.py", line 307, in main
run_notifyd(args, config, paths, start_time)
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/main.py", line 62, in run_notifyd
connection_manager.initialize_stunnel()
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/connection_manager.py", line 192, in initialize_stunnel
config: str = create_stunnel_config_from_mknotifyd_config(
File "/omd/sites/monitoring01/lib/python3/cmk/cee/mknotifyd/connection_manager.py", line 46, in create_stunnel_config_from_mknotifyd_config
if incoming and incoming["encryption"] != "unencrypted":
KeyError: 'encryption'
2022-07-04 09:01:57 was the last working notification
But I disabled pushing notifications to the central site for now as the mknotifyd was not starting.
Should I try again?
EDIT: I configured to let central site connect to remote site again but this time I enabled encryption as well - seems like it is now working. Fingers crossed
Anyway, could it be that unencrypted traffic is just not possible?
We had the same problem today upgrading from 2.0p37 to 2.1.p30.
Mknotifyd died on all satellites with the error message in the mknotifyd.log as above ( KeyError: âencryptionâ )
We solved it this way
Set all Notification connections to unencrypted in the central sites and on the satellites
activated the changes
restarted the mknotifyd with omd restart <sitename> mknotifyd
Setting all connections to âEncrypt with TLSâ in the central sites and on the satellites