From a69edee91bee104653d521aa873a8991963bc916 Mon Sep 17 00:00:00 2001 From: George Pochiscan Date: Thu, 3 Sep 2020 17:56:42 +0300 Subject: [PATCH] added wato rule for configuring username/password --- .../gui/plugins/wato/datasource_programs.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 hitachi-vsp/lib/python/cmk/gui/plugins/wato/datasource_programs.py diff --git a/hitachi-vsp/lib/python/cmk/gui/plugins/wato/datasource_programs.py b/hitachi-vsp/lib/python/cmk/gui/plugins/wato/datasource_programs.py new file mode 100644 index 0000000..76cbc2d --- /dev/null +++ b/hitachi-vsp/lib/python/cmk/gui/plugins/wato/datasource_programs.py @@ -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, + )) \ No newline at end of file