Module: check_mk
Branch: master
Commit: 0c663c65e40a38b080d16a8da302e7623c097ead
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0c663c65e40a38…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Mon Aug 5 15:10:52 2013 +0200
added configuration for EMC VNX special agent in Wato
---
agents/special/agent_emcvnx | 2 +-
web/plugins/wato/datasource_programs.py | 42 +++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/agents/special/agent_emcvnx b/agents/special/agent_emcvnx
index 1a99bc4..e13c05e 100755
--- a/agents/special/agent_emcvnx
+++ b/agents/special/agent_emcvnx
@@ -75,7 +75,7 @@ OPTIONS:
#############################################################################
# command line options
#############################################################################
-short_options = 'hu:p:t:m:'
+short_options = 'hu:p:t:m:i:'
long_options = [ 'help', 'user=', 'password=', 'debug',
'timeout=', 'profile', 'modules=' ]
try:
diff --git a/web/plugins/wato/datasource_programs.py
b/web/plugins/wato/datasource_programs.py
index 7f7f9db..d59a6f5 100644
--- a/web/plugins/wato/datasource_programs.py
+++ b/web/plugins/wato/datasource_programs.py
@@ -117,6 +117,48 @@ register_rule(group,
register_rule(group,
+ "special_agents:emcvnx",
+ Dictionary(
+ title = _("Check state of EMC VNX storage systems"),
+ help = _("This rule selects the EMC VNX agent instead of the normal Check_MK
Agent "
+ "and allows monitoring of EMC VNX storage systems by calling
naviseccli "
+ "commandline tool locally on the monitoring system. Make sure it is
installed "
+ "and working. You can configure your connection settings
here."
+ ),
+ elements = [
+ ( "user",
+ TextAscii(
+ title = _("EMC VNX admin user name"),
+ allow_empty = False,
+ )
+ ),
+ ( "password",
+ Password(
+ title = _("EMC VNX admin user password"),
+ allow_empty = False,
+ )
+ ),
+ ( "infos",
+ Transform(
+ ListChoice(
+ choices = [
+ ( "disks", _("Disks") ),
+ ( "hba", _("iSCSI HBAs") ),
+ ( "hwstatus", _("Hardware Status") ),
+ ],
+ default_value = [ "disks", "hba",
"hwstatus", ],
+ allow_empty = False,
+ ),
+ title = _("Retrieve information about..."),
+ )
+ ),
+ ],
+ optional_keys = [ ],
+ ),
+ match = 'first')
+
+
+register_rule(group,
"special_agents:random",
FixedValue(
{},