diff --git a/mailcow/agent_based/mailcow_domains.py b/mailcow/agent_based/mailcow_domains.py index b515815..6e3b871 100644 --- a/mailcow/agent_based/mailcow_domains.py +++ b/mailcow/agent_based/mailcow_domains.py @@ -3,10 +3,6 @@ """Mailcow check for domains""" -from pprint import pprint - -from cmk.utils import debug - # import necessary elements from API version 2 from cmk.agent_based.v2 import ( AgentSection, @@ -96,8 +92,6 @@ def discover_mailcow_domains(section): def check_mailcow_domains(item, params, section): """the check function""" - if debug.enabled(): - pprint(section) domain = section.get(item) if not domain: # if a previously found domain does not exist anymore, create a meaningful result diff --git a/mailcow/agent_based/mailcow_info.py b/mailcow/agent_based/mailcow_info.py index d6cd767..a7c208f 100644 --- a/mailcow/agent_based/mailcow_info.py +++ b/mailcow/agent_based/mailcow_info.py @@ -1,9 +1,5 @@ #!/usr/bin/env python3 -# pylint: disable=line-too-long, simplifiable-if-statement, missing-module-docstring, too-many-locals, unused-argument - -from pprint import pprint - -from cmk.utils import debug +# pylint: disable=line-too-long, simplifiable-if-statement, missing-module-docstring, too-many-locals # import necessary elements from API version 2 from cmk.agent_based.v2 import ( @@ -65,8 +61,6 @@ def discover_mailcow_info(section): def check_mailcow_info(params, section): """the check function""" - if debug.enabled(): - pprint(section) # get thresholds _type, levels_num_domains = params["levels_num_domains"] _type, levels_num_mailboxes = params["levels_num_mailboxes"] diff --git a/mailcow/agent_based/mailcow_mailboxes.py b/mailcow/agent_based/mailcow_mailboxes.py index 55c0a3b..a48cdb3 100644 --- a/mailcow/agent_based/mailcow_mailboxes.py +++ b/mailcow/agent_based/mailcow_mailboxes.py @@ -3,9 +3,6 @@ """Mailcow check for mailboxes""" import time -from pprint import pprint - -from cmk.utils import debug # import necessary elements from API version 2 from cmk.agent_based.v2 import ( @@ -115,8 +112,6 @@ def parse_mailcow_mailboxes(string_table): def discover_mailcow_mailboxes(section): """the discover function""" # since we have a service with item here we must create one service per item - if debug.enabled(): - pprint(section) for key in section: yield Service(item=key)