From 74fc67a24114137772f3867db2de5523c2df538c Mon Sep 17 00:00:00 2001 From: cmk-bonobo Date: Sat, 10 May 2025 11:12:33 +0200 Subject: [PATCH] unofficial function removed --- agent_based/traefik_http_components.py | 5 ----- agent_based/traefik_info.py | 4 ---- agent_based/traefik_tcp_components.py | 5 ----- agent_based/traefik_udp_components.py | 5 ----- 4 files changed, 19 deletions(-) diff --git a/agent_based/traefik_http_components.py b/agent_based/traefik_http_components.py index 26fed63..d6d69b6 100644 --- a/agent_based/traefik_http_components.py +++ b/agent_based/traefik_http_components.py @@ -2,9 +2,6 @@ # pylint: disable=missing-module-docstring, unused-argument, consider-using-f-string # pylint: disable=missing-function-docstring, line-too-long -from pprint import pprint - -from cmk.utils import debug # import necessary elements from API version 2 from cmk.agent_based.v2 import ( @@ -46,8 +43,6 @@ def discover_traefik_http_components(section) -> DiscoveryResult: def check_traefik_http_components(params, section) -> CheckResult: """the check function""" - if debug.enabled(): - pprint(section) _level_type, levels_percent_not_ok = params["levels_traefik_http_components_not_ok"] levels_min_routers = params["levels_traefik_min_http_routers"] levels_max_routers = params["levels_traefik_max_http_routers"] diff --git a/agent_based/traefik_info.py b/agent_based/traefik_info.py index c639e22..5fdb09c 100644 --- a/agent_based/traefik_info.py +++ b/agent_based/traefik_info.py @@ -4,9 +4,7 @@ import datetime import time -from pprint import pprint -from cmk.utils import debug # import necessary elements from API version 2 from cmk.agent_based.v2 import ( @@ -62,8 +60,6 @@ def discover_traefik_info(section) -> DiscoveryResult: def check_traefik_info(params, section) -> CheckResult: """the check function""" - if debug.enabled(): - pprint(section) _level_type, levels = params["levels_traefik_agent_execution_time"] codename: str = section["codename"] version: str = section["version"] diff --git a/agent_based/traefik_tcp_components.py b/agent_based/traefik_tcp_components.py index 495dba7..c38885d 100644 --- a/agent_based/traefik_tcp_components.py +++ b/agent_based/traefik_tcp_components.py @@ -2,9 +2,6 @@ # pylint: disable=missing-module-docstring, unused-argument, consider-using-f-string # pylint: disable=missing-function-docstring, line-too-long -from pprint import pprint - -from cmk.utils import debug # import necessary elements from API version 2 from cmk.agent_based.v2 import ( @@ -46,8 +43,6 @@ def discover_traefik_tcp_components(section) -> DiscoveryResult: def check_traefik_tcp_components(params, section) -> CheckResult: """the check function""" - if debug.enabled(): - pprint(section) _level_type, levels_percent_not_ok = params["levels_traefik_tcp_components_not_ok"] levels_min_routers = params["levels_traefik_min_tcp_routers"] levels_max_routers = params["levels_traefik_max_tcp_routers"] diff --git a/agent_based/traefik_udp_components.py b/agent_based/traefik_udp_components.py index cb237f9..4002e62 100644 --- a/agent_based/traefik_udp_components.py +++ b/agent_based/traefik_udp_components.py @@ -2,9 +2,6 @@ # pylint: disable=missing-module-docstring, unused-argument, consider-using-f-string # pylint: disable=missing-function-docstring, line-too-long -from pprint import pprint - -from cmk.utils import debug # import necessary elements from API version 2 from cmk.agent_based.v2 import ( @@ -42,8 +39,6 @@ def discover_traefik_udp_components(section) -> DiscoveryResult: def check_traefik_udp_components(params, section) -> CheckResult: """the check function""" - if debug.enabled(): - pprint(section) _level_type, levels_percent_not_ok = params["levels_traefik_udp_components_not_ok"] levels_min_routers = params["levels_traefik_min_udp_routers"] levels_max_routers = params["levels_traefik_max_udp_routers"]