Module: check_mk
Branch: master
Commit: 7b98d47e5880afc87984d6de678ad21408d6f0ef
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7b98d47e5880af…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 27 09:02:54 2013 +0100
Added skeleton for empty check
---
doc/skeleton_check | 43 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
diff --git a/doc/skeleton_check b/doc/skeleton_check
new file mode 100644
index 0000000..be9172f
--- /dev/null
+++ b/doc/skeleton_check
@@ -0,0 +1,43 @@
+#!/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.
+
+# Example output from agent:
+# Put here the example output from your TCP-Based agent. If the
+# check is SNMP-Based, then remove this section
+
+def inventory_foobars(info):
+ return []
+
+def check_foobar(item, _no_params, info):
+ return 3, "UNKNOWN - Check no implemented"
+
+check_info["foobar"] = {
+ "check_function" : check_foobar,
+ "inventory_function" : inventory_foobar,
+ "service_description" : "FOOBAR",
+ "has_perfdata" : False,
+}
+