added debug options

This commit is contained in:
2025-04-12 15:22:11 +02:00
parent cc2aaee908
commit 567f4d8602
12 changed files with 18 additions and 1 deletions

View File

@@ -3,6 +3,9 @@
"""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 (
@@ -112,6 +115,8 @@ 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)