diff --git a/agent_based/checkpoint_asg_chassis.py b/agent_based/checkpoint_asg_chassis.py index f0a8bd8b5da7a60964e33a594d91fdece8d9cae8..1dc51786bf51c709e337e5ae4e216a2c58f22f1b 100644 --- a/agent_based/checkpoint_asg_chassis.py +++ b/agent_based/checkpoint_asg_chassis.py @@ -13,6 +13,7 @@ # added warning/critical is chassis grade not equeal maxGrade # 2021-09-10: rewrite parse function # 2021-09-11: added WATO, cleanup +# 2022-10-23: fixed warning on upgrade "non-empty params vanished" for discovery_chassis and discovery_sgms # # sample snmpwalk # .1.3.6.1.4.1.2620.1.48.28.1.0 = STRING: "Multi" diff --git a/checkpoint_asg_chassis.mkp b/checkpoint_asg_chassis.mkp index 60eb1d218be30d2486c88e8bc378b16de9244023..539c48e6fb46db39f557e4eac0a7a5c4006cd1bc 100644 Binary files a/checkpoint_asg_chassis.mkp and b/checkpoint_asg_chassis.mkp differ diff --git a/packages/checkpoint_asg_chassis b/packages/checkpoint_asg_chassis index 7ce7459b0e9f49e626bfc7059c5014e041a0d9f3..b190c210a6705b6d042e9357279a97ce6f1c69c2 100644 --- a/packages/checkpoint_asg_chassis +++ b/packages/checkpoint_asg_chassis @@ -8,7 +8,7 @@ 'name': 'checkpoint_asg_chassis', 'num_files': 3, 'title': 'Check Point Maestro SMO ASG Chassis', - 'version': '20210911.v0.3', + 'version': '221023.v0.3a', 'version.min_required': '2.0.0', 'version.packaged': '2021.09.20', 'version.usable_until': None} \ No newline at end of file diff --git a/web/plugins/wato/checkpoint_asg_chassis.py b/web/plugins/wato/checkpoint_asg_chassis.py index 0cc722a230647998d0a37ec1612530c8b0d6c905..abe790782278334b56dc339a22675ae23447d480 100644 --- a/web/plugins/wato/checkpoint_asg_chassis.py +++ b/web/plugins/wato/checkpoint_asg_chassis.py @@ -7,6 +7,7 @@ from cmk.gui.valuespec import ( Dictionary, DropdownChoice, MonitoringState, + Integer, ) from cmk.gui.plugins.wato import ( @@ -17,7 +18,8 @@ from cmk.gui.plugins.wato import ( def _parameter_valuespec_checkpoint_asg_chassis(): - return Dictionary(elements=[ + return Dictionary( + elements=[ ('desired_chassis_active', DropdownChoice( title=_('Desired active chassis'), @@ -65,7 +67,11 @@ def _parameter_valuespec_checkpoint_asg_chassis(): title=_('State if number of SGMs has canged'), help=_('Monitoring state if number of SGMs differs from discovery time'), )), - ]) + ('discovery_chassis', Integer()), # added by plugin discovery function + ('discovery_sgms', Integer()), # added by plugin discovery function + ], + hidden_keys=['discovery_chassis', 'discovery_sgms'], + ) rulespec_registry.register(