added wato rule for configuring username/password

This commit is contained in:
George Pochiscan 2020-09-03 17:56:42 +03:00
parent 8909c7d8b0
commit a69edee91b

View File

@ -0,0 +1,25 @@
def _valuespec_special_agents_hitachivsp():
return Dictionary(
title=_("Check HITACHI VSP Storages"),
help=_("This rule set selects the special agent for Hitachi VSP Storages "
"instead of the normal Check_MK agent and allows monitoring via Web API. "),
optional_keys=["cert"],
elements=[
("user", TextAscii(title=_("Username"), allow_empty=False)),
("password", Password(title=_("Password"), allow_empty=False)),
("cert",
DropdownChoice(title=_("SSL certificate verification"),
choices=[
(True, _("Activate")),
(False, _("Deactivate")),
])),
],
)
rulespec_registry.register(
HostRulespec(
group=RulespecGroupDatasourcePrograms,
name="special_agents:hitachivsp",
valuespec=_valuespec_special_agents_hitachivsp,
))