added debug options
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
"""HAL9002 check for storages"""
|
||||
|
||||
import time
|
||||
from pprint import pprint
|
||||
|
||||
from cmk.utils import debug
|
||||
|
||||
# import necessary elements from API version 2
|
||||
from cmk.agent_based.v2 import (
|
||||
@@ -41,6 +44,8 @@ def discover_hal9002_storages(section):
|
||||
|
||||
def check_hal9002_storages(item, params, section):
|
||||
"""the check function"""
|
||||
if debug.enabled():
|
||||
pprint(section)
|
||||
curr_time = time.time() # needed for calculating rates
|
||||
attr = section.get(item)
|
||||
if not attr:
|
||||
|
||||
Reference in New Issue
Block a user