diff --git a/agent_based/checkpoint_asg_chassis.py b/agent_based/checkpoint_asg_chassis.py index 919ac7db0f7d2ba88d8ae676acb0701195f755c7..f0a8bd8b5da7a60964e33a594d91fdece8d9cae8 100644 --- a/agent_based/checkpoint_asg_chassis.py +++ b/agent_based/checkpoint_asg_chassis.py @@ -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 diff --git a/checkpoint_asg_chassis.mkp b/checkpoint_asg_chassis.mkp index 8f4289ccd901f69457f4758bf2883f3e4e4028b0..c45da4678568bd8c43e975d407a913aee6aceadf 100644 Binary files a/checkpoint_asg_chassis.mkp and b/checkpoint_asg_chassis.mkp differ