Push test from iMac

This commit is contained in:
Ralf Mellis 2024-06-26 16:33:15 +02:00
parent 7c721374b5
commit df372b5627
2 changed files with 29 additions and 11 deletions

0
local/share/check_mk/agents/special/agent_hal9001 Normal file → Executable file
View File

View File

@ -1,25 +1,43 @@
#!/usr/bin/env python3
from cmk.gui.i18n import _ from cmk.gui.i18n import _
from cmk.gui.plugins.wato import (
from cmk.gui.plugins.wato.utils import ( CheckParameterRulespecWithItem,
IndividualOrStoredPassword,
rulespec_registry, rulespec_registry,
RulespecGroupCheckParametersOperatingSystem,
) )
from cmk.gui.valuespec import ( from cmk.gui.valuespec import (
Age,
Alternative,
CascadingDropdown,
Checkbox,
Dictionary, Dictionary,
DictionaryElements,
DropdownChoice,
FixedValue,
Float,
HostAddress,
Hostname,
HTTPUrl,
ID,
Integer,
ListChoice,
ListOf,
ListOfStrings,
MonitoringState,
NetworkPort,
Password, Password,
RegExp,
TextAscii, TextAscii,
TextInput,
Transform,
Tuple,
) )
from cmk.gui.watolib.rulespecs import ( from cmk.gui.plugins.wato import (
HostRulespec, HostRulespec,
IndividualOrStoredPassword,
) )
from cmk.gui.plugins.wato.datasource_programs import RulespecGroupDatasourceProgramsCustom
from cmk.gui.plugins.wato.special_agents.common import (
RulespecGroupDatasourceProgramsTesting,
)
def _params_special_agent_hal9001(): def _params_special_agent_hal9001():
return Dictionary( return Dictionary(
@ -40,7 +58,7 @@ def _params_special_agent_hal9001():
rulespec_registry.register( rulespec_registry.register(
HostRulespec( HostRulespec(
group=RulespecGroupDatasourceProgramsTesting, group=RulespecGroupDatasourceProgramsCustom,
name="special_agents:hal9001", name="special_agents:hal9001",
valuespec=_params_special_agent_hal9001, valuespec=_params_special_agent_hal9001,
) )