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

@@ -4,6 +4,9 @@
from collections.abc import Mapping
from typing import NotRequired, TypedDict
from pprint import pprint
from cmk.utils import debug
from cmk.agent_based.v2 import (
AgentSection,
@@ -43,6 +46,8 @@ def discover_nextcloud_database(section) -> DiscoveryResult:
def check_nextcloud_database(params, section) -> CheckResult:
if debug.enabled():
pprint(section)
for key in section:
if key == "database":
opcache_hit_rate = section[key]["opcache_hit_rate"]