AutoSync from Dev System
This commit is contained in:
BIN
hal9002/agent_based/__pycache__/hal9002_status.cpython-312.pyc
Normal file
BIN
hal9002/agent_based/__pycache__/hal9002_status.cpython-312.pyc
Normal file
Binary file not shown.
BIN
hal9002/agent_based/__pycache__/hal9002_storages.cpython-312.pyc
Normal file
BIN
hal9002/agent_based/__pycache__/hal9002_storages.cpython-312.pyc
Normal file
Binary file not shown.
BIN
hal9002/agent_based/__pycache__/hal9002_users.cpython-312.pyc
Normal file
BIN
hal9002/agent_based/__pycache__/hal9002_users.cpython-312.pyc
Normal file
Binary file not shown.
@@ -1,10 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# pylint: disable=missing-module-docstring, unused-argument, missing-function-docstring
|
# pylint: disable=missing-module-docstring, unused-argument, missing-function-docstring
|
||||||
|
|
||||||
from pprint import pprint
|
|
||||||
|
|
||||||
from cmk.utils import debug
|
|
||||||
|
|
||||||
# import necessary elements from API version 2
|
# import necessary elements from API version 2
|
||||||
from cmk.agent_based.v2 import (
|
from cmk.agent_based.v2 import (
|
||||||
AgentSection,
|
AgentSection,
|
||||||
@@ -34,8 +30,6 @@ def discover_hal9002_status(section):
|
|||||||
|
|
||||||
def check_hal9002_status(params, section):
|
def check_hal9002_status(params, section):
|
||||||
"""the check function"""
|
"""the check function"""
|
||||||
if debug.enabled():
|
|
||||||
pprint(section)
|
|
||||||
# print(params["state_if_update_is_available"])
|
# print(params["state_if_update_is_available"])
|
||||||
status = section["status"]
|
status = section["status"]
|
||||||
version = section["version"]
|
version = section["version"]
|
||||||
|
|||||||
@@ -3,9 +3,6 @@
|
|||||||
"""HAL9002 check for storages"""
|
"""HAL9002 check for storages"""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from pprint import pprint
|
|
||||||
|
|
||||||
from cmk.utils import debug
|
|
||||||
|
|
||||||
# import necessary elements from API version 2
|
# import necessary elements from API version 2
|
||||||
from cmk.agent_based.v2 import (
|
from cmk.agent_based.v2 import (
|
||||||
@@ -44,8 +41,6 @@ def discover_hal9002_storages(section):
|
|||||||
|
|
||||||
def check_hal9002_storages(item, params, section):
|
def check_hal9002_storages(item, params, section):
|
||||||
"""the check function"""
|
"""the check function"""
|
||||||
if debug.enabled():
|
|
||||||
pprint(section)
|
|
||||||
curr_time = time.time() # needed for calculating rates
|
curr_time = time.time() # needed for calculating rates
|
||||||
attr = section.get(item)
|
attr = section.get(item)
|
||||||
if not attr:
|
if not attr:
|
||||||
|
|||||||
@@ -2,10 +2,6 @@
|
|||||||
# pylint: disable=line-too-long
|
# pylint: disable=line-too-long
|
||||||
"""HAL9002 checks for users"""
|
"""HAL9002 checks for users"""
|
||||||
|
|
||||||
from pprint import pprint
|
|
||||||
|
|
||||||
from cmk.utils import debug
|
|
||||||
|
|
||||||
# import necessary elements from API version 2
|
# import necessary elements from API version 2
|
||||||
from cmk.agent_based.v2 import (
|
from cmk.agent_based.v2 import (
|
||||||
AgentSection,
|
AgentSection,
|
||||||
@@ -42,8 +38,6 @@ def discover_hal9002_users(section):
|
|||||||
|
|
||||||
def check_hal9002_users(item, params, section):
|
def check_hal9002_users(item, params, section):
|
||||||
"""the check function"""
|
"""the check function"""
|
||||||
if debug.enabled():
|
|
||||||
pprint(section)
|
|
||||||
attr = section.get(item)
|
attr = section.get(item)
|
||||||
if not attr:
|
if not attr:
|
||||||
# if a previously found user does not exist anymore, create a meaningful result
|
# if a previously found user does not exist anymore, create a meaningful result
|
||||||
|
|||||||
BIN
hal9002/graphing/__pycache__/graph_hal9002.cpython-312.pyc
Normal file
BIN
hal9002/graphing/__pycache__/graph_hal9002.cpython-312.pyc
Normal file
Binary file not shown.
BIN
hal9002/rulesets/__pycache__/rs_hal9002_params.cpython-312.pyc
Normal file
BIN
hal9002/rulesets/__pycache__/rs_hal9002_params.cpython-312.pyc
Normal file
Binary file not shown.
BIN
hal9002/rulesets/__pycache__/rs_hal9002_status.cpython-312.pyc
Normal file
BIN
hal9002/rulesets/__pycache__/rs_hal9002_status.cpython-312.pyc
Normal file
Binary file not shown.
BIN
hal9002/rulesets/__pycache__/rs_hal9002_storages.cpython-312.pyc
Normal file
BIN
hal9002/rulesets/__pycache__/rs_hal9002_storages.cpython-312.pyc
Normal file
Binary file not shown.
BIN
hal9002/rulesets/__pycache__/rs_hal9002_users.cpython-312.pyc
Normal file
BIN
hal9002/rulesets/__pycache__/rs_hal9002_users.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user