unofficial function removed
This commit is contained in:
		
							parent
							
								
									b0d096634c
								
							
						
					
					
						commit
						74fc67a241
					
				| @ -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"] | ||||
|  | ||||
| @ -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"] | ||||
|  | ||||
| @ -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"] | ||||
|  | ||||
| @ -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"] | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user