Module: check_mk
Branch: master
Commit: 0fad62f0f2b1683ad19d76341deaa975e9bc59cc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0fad62f0f2b168…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Mon Aug 5 15:29:02 2013 +0200
initial release of checks/agent_emcvnx
---
checks/agent_emcvnx | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/checks/agent_emcvnx b/checks/agent_emcvnx
new file mode 100644
index 0000000..683afa3
--- /dev/null
+++ b/checks/agent_emcvnx
@@ -0,0 +1,36 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2013 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at
http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# ails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+def agent_emcvnx_arguments(params, hostname, ipaddress):
+ args = ''
+ args += " -u " + quote_shell_string(params["user"])
+ args += " -p " + quote_shell_string(params["password"])
+ args += " -i " + ",".join(params["infos"])
+
+ args += " " + quote_shell_string(ipaddress)
+ return args
+
+special_agent_info['emcvnx'] = agent_emcvnx_arguments