diff --git a/cmk/notification_plugins/spectrum.py b/cmk/notification_plugins/spectrum.py index 753bfe921d2..27d572f8145 100644 --- a/cmk/notification_plugins/spectrum.py +++ b/cmk/notification_plugins/spectrum.py @@ -71,4 +71,10 @@ def main() -> NoReturn: base_oid + ".14": context.get("SERVICEGROUPNAMES", ""), } - sys.exit(send_trap(oids, context["PARAMETER_DESTINATION"], context["PARAMETER_COMMUNITY"])) + sys.exit( + send_trap( + oids, + context["PARAMETER_DESTINATION"], + utils.get_password_from_env_or_context(key="PARAMETER_COMMUNITY", context=context), + ) + )