added debug options
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
# pylint: disable=line-too-long, too-many-locals
|
||||
|
||||
from time import time
|
||||
from pprint import pprint
|
||||
|
||||
from cmk.utils import debug
|
||||
|
||||
from cmk.agent_based.v2 import (
|
||||
AgentSection,
|
||||
@@ -42,6 +45,8 @@ def discover_nextcloud_users(section) -> DiscoveryResult:
|
||||
|
||||
|
||||
def check_nextcloud_users(item, params, section) -> CheckResult:
|
||||
if debug.enabled():
|
||||
pprint(section)
|
||||
userid = item
|
||||
quota_used_percent = section[item][0]
|
||||
quota_used_bytes = section[item][1]
|
||||
|
||||
Reference in New Issue
Block a user