Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 74d0bbc7 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 28b52e15
No related branches found
No related tags found
No related merge requests found
......@@ -85,14 +85,14 @@ from cmk.base.plugins.agent_based.agent_based_api.v1 import (
)
class CheckPointASGChassisInfo(NamedTuple):
class CheckoointAsgChassisInfo(NamedTuple):
mode: str
hamode: str
synctoactive: str
synctostandby: str
class CheckPointASGChassisParams(NamedTuple):
class CheckpointAsgChassisParams(NamedTuple):
id: str
status: str
grade: str
......@@ -100,23 +100,23 @@ class CheckPointASGChassisParams(NamedTuple):
uniqueip: str
class CheckPointASGChassisSgms(NamedTuple):
class CheckPointAsgChassisSgms(NamedTuple):
id: str
status: str
class CheckPointASGChassis(NamedTuple):
info: CheckPointASGChassisInfo
chassis: List
sgms: List
info: CheckoointAsgChassisInfo
chassis: List[CheckpointAsgChassisParams]
sgms: List[CheckPointAsgChassisSgms]
def parse_checkpoint_asg_chassis(string_table: List[StringTable]) -> Optional[CheckPointASGChassis]:
try:
return CheckPointASGChassis(
info=CheckPointASGChassisInfo(*string_table[0][0]),
chassis=[CheckPointASGChassisParams(*chassis) for chassis in string_table[1]],
sgms=[CheckPointASGChassisSgms(*sgm) for sgm in string_table[2]]
info=CheckoointAsgChassisInfo(*string_table[0][0]),
chassis=[CheckpointAsgChassisParams(*chassis) for chassis in string_table[1]],
sgms=[CheckPointAsgChassisSgms(*sgm) for sgm in string_table[2]]
)
except (TypeError, IndexError):
pass
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment