From df372b562717203aa81bf3077610351f7e11b331 Mon Sep 17 00:00:00 2001 From: cmk-bonobo Date: Wed, 26 Jun 2024 16:33:15 +0200 Subject: [PATCH] Push test from iMac --- .../check_mk/agents/special/agent_hal9001 | 0 .../web/plugins/wato/hal9001_params.py | 40 ++++++++++++++----- 2 files changed, 29 insertions(+), 11 deletions(-) mode change 100644 => 100755 local/share/check_mk/agents/special/agent_hal9001 diff --git a/local/share/check_mk/agents/special/agent_hal9001 b/local/share/check_mk/agents/special/agent_hal9001 old mode 100644 new mode 100755 diff --git a/local/share/check_mk/web/plugins/wato/hal9001_params.py b/local/share/check_mk/web/plugins/wato/hal9001_params.py index 3fa4236..08ab751 100644 --- a/local/share/check_mk/web/plugins/wato/hal9001_params.py +++ b/local/share/check_mk/web/plugins/wato/hal9001_params.py @@ -1,25 +1,43 @@ -#!/usr/bin/env python3 - from cmk.gui.i18n import _ - -from cmk.gui.plugins.wato.utils import ( - IndividualOrStoredPassword, +from cmk.gui.plugins.wato import ( + CheckParameterRulespecWithItem, rulespec_registry, + RulespecGroupCheckParametersOperatingSystem, ) from cmk.gui.valuespec import ( + Age, + Alternative, + CascadingDropdown, + Checkbox, Dictionary, + DictionaryElements, + DropdownChoice, + FixedValue, + Float, + HostAddress, + Hostname, + HTTPUrl, + ID, + Integer, + ListChoice, + ListOf, + ListOfStrings, + MonitoringState, + NetworkPort, Password, + RegExp, TextAscii, + TextInput, + Transform, + Tuple, ) -from cmk.gui.watolib.rulespecs import ( +from cmk.gui.plugins.wato import ( HostRulespec, + IndividualOrStoredPassword, ) - -from cmk.gui.plugins.wato.special_agents.common import ( - RulespecGroupDatasourceProgramsTesting, -) +from cmk.gui.plugins.wato.datasource_programs import RulespecGroupDatasourceProgramsCustom def _params_special_agent_hal9001(): return Dictionary( @@ -40,7 +58,7 @@ def _params_special_agent_hal9001(): rulespec_registry.register( HostRulespec( - group=RulespecGroupDatasourceProgramsTesting, + group=RulespecGroupDatasourceProgramsCustom, name="special_agents:hal9001", valuespec=_params_special_agent_hal9001, )