Push test from iMac
This commit is contained in:
parent
7c721374b5
commit
df372b5627
0
local/share/check_mk/agents/special/agent_hal9001
Normal file → Executable file
0
local/share/check_mk/agents/special/agent_hal9001
Normal file → Executable 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,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user