added debug options

This commit is contained in:
2025-04-12 15:21:58 +02:00
parent c0f4490b89
commit ddb0ca92c9
3 changed files with 14 additions and 0 deletions

View File

@@ -3,7 +3,9 @@
# pylint: disable=line-too-long, too-many-branches, too-many-locals, too-many-statements
from datetime import datetime
from pprint import pprint
from cmk.utils import debug
from cmk.agent_based.v2 import (
AgentSection,
CheckPlugin,
@@ -42,6 +44,8 @@ def discover_nextcloud_info(section) -> DiscoveryResult:
def check_nextcloud_info(params, section) -> CheckResult:
for key in section:
if debug.enabled():
pprint(section)
if key == "nextcloud":
_level_type, levels_free_space = params["levels_free_space"]
_level_type, levels_number_of_files = params["levels_number_of_files"]