added debug options
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
# pylint: disable=line-too-long
|
||||
"""HAL9002 checks for users"""
|
||||
|
||||
from pprint import pprint
|
||||
|
||||
from cmk.utils import debug
|
||||
|
||||
# import necessary elements from API version 2
|
||||
from cmk.agent_based.v2 import (
|
||||
AgentSection,
|
||||
@@ -38,6 +42,8 @@ def discover_hal9002_users(section):
|
||||
|
||||
def check_hal9002_users(item, params, section):
|
||||
"""the check function"""
|
||||
if debug.enabled():
|
||||
pprint(section)
|
||||
attr = section.get(item)
|
||||
if not attr:
|
||||
# if a previously found user does not exist anymore, create a meaningful result
|
||||
|
||||
Reference in New Issue
Block a user