some images added

This commit is contained in:
2023-12-02 15:20:26 +01:00
parent 411db4711b
commit 309d970342
7 changed files with 40 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ opt_password = ""
base_usage = float(65536 * 8) # 0.5 MByte
max_quota = 1073741824.0 # 1 GByte
# these dicts are used as starting points, fell free to extend and/or adjust them
# these dicts are used as starting points, feel free to extend and/or adjust them
# each user/storage results in an additional service
users_dict = {
"user1": {

View File

@@ -6,37 +6,58 @@ from cmk.gui.plugins.wato import (
)
from cmk.gui.valuespec import (
Dictionary,
ListChoice,
Age,
Alternative,
CascadingDropdown,
Checkbox,
TextAscii,
Dictionary,
DictionaryElements,
DropdownChoice,
FixedValue,
Float,
HostAddress,
Hostname,
HTTPUrl,
ID,
Integer,
ListChoice,
ListOf,
ListOfStrings,
MonitoringState,
NetworkPort,
Password,
RegExp,
TextAscii,
TextInput,
Transform,
Tuple,
)
from cmk.gui.plugins.wato import (
HostRulespec,
IndividualOrStoredPassword,
)
from cmk.gui.plugins.wato.datasource_programs import RulespecGroupDatasourceProgramsCustom
#import cmk.gui.watolib as watolib
def _params_special_agent_hal9001():
return Dictionary(
title=_("Login parameters for HAL9001 systems"),
help = _("HAL9001: Dedicated to Arthur C. Clarke"),
elements=[
("username", TextAscii(title=_("Username"),
("username", TextAscii(
title=_("Username"),
allow_empty=False,
help=_("Username with administrative rights, mandatory"))),
("password", Password(title=_("Password"),
("password", Password(
title=_("Password"),
allow_empty=False,
help=_("Specify password of this user"))),
help=_("Specify password of this user, mandatory"))),
],
optional_keys=[],
)
rulespec_registry.register(
HostRulespec(
#factory_default=watolib.Rulespec.FACTORY_DEFAULT_UNUSED,
group=RulespecGroupDatasourceProgramsCustom,
name="special_agents:hal9001",
valuespec=_params_special_agent_hal9001,