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