added debug options
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user