From cdaf65ee0f08cabd974ce430d4d623b592c15868 Mon Sep 17 00:00:00 2001 From: "Buhleier, Leon" Date: Fri, 21 Aug 2026 14:16:25 +0200 Subject: [PATCH] Fixed a bug in signl4 notification plugin that would crash the script if there are non-ascii characters in the service description --- .../cmk-notification-plugins/cmk/notification_plugins/signl4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cmk-notification-plugins/cmk/notification_plugins/signl4.py b/packages/cmk-notification-plugins/cmk/notification_plugins/signl4.py index 566ef51ce3a..084aabe354f 100644 --- a/packages/cmk-notification-plugins/cmk/notification_plugins/signl4.py +++ b/packages/cmk-notification-plugins/cmk/notification_plugins/signl4.py @@ -52,7 +52,7 @@ def _signl4_msg(context: dict[str, str]) -> dict[str, object]: service_desc_base64 = "" service_desc_id_part = "" if len(service_desc) > 0: - service_desc_bytes = service_desc.encode("ascii") + service_desc_bytes = service_desc.encode("ascii", errors="replace") service_desc_base64 = base64.b64encode(service_desc_bytes).decode() service_desc_id_part = ":ServiceDesc:" + service_desc_base64 return {