[checkmk-commits] Check_MK Git: check_mk: Added missing PNP templates

Mathias Kettner mk at mathias-kettner.de
Thu Aug 14 16:49:58 CEST 2014


Module: check_mk
Branch: master
Commit: eb1afcc4d851f47cbdee269f8cc274ef5bc705f1
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eb1afcc4d851f47cbdee269f8cc274ef5bc705f1

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Thu Aug 14 16:49:52 2014 +0200

Added missing PNP templates

---

 pnp-templates/check_mk-canon_pages.php   |    1 +
 pnp-templates/check_mk-printer_pages.php |   32 ++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/pnp-templates/check_mk-canon_pages.php b/pnp-templates/check_mk-canon_pages.php
new file mode 120000
index 0000000..81ff691
--- /dev/null
+++ b/pnp-templates/check_mk-canon_pages.php
@@ -0,0 +1 @@
+check_mk-printer_pages.php
\ No newline at end of file
diff --git a/pnp-templates/check_mk-printer_pages.php b/pnp-templates/check_mk-printer_pages.php
new file mode 100644
index 0000000..c9c519d
--- /dev/null
+++ b/pnp-templates/check_mk-printer_pages.php
@@ -0,0 +1,32 @@
+<?php
+# +------------------------------------------------------------------+
+# |             ____ _               _        __  __ _  __           |
+# |            / ___| |__   ___  ___| | __   |  \/  | |/ /           |
+# |           | |   | '_ \ / _ \/ __| |/ /   | |\/| | ' /            |
+# |           | |___| | | |  __/ (__|   <    | |  | | . \            |
+# |            \____|_| |_|\___|\___|_|\_\___|_|  |_|_|\_\           |
+# |                                                                  |
+# | Copyright Mathias Kettner 2013             mk at 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.
+
+$opt[1] = "--vertical-label 'Pages printed' -X0 -l0 --title \"$servicedesc\" "; 
+$def[1] = "DEF:pages=$RRDFILE[1]:$DS[1]:MAX ";
+$def[1] .= "AREA:pages#808080:\"Pages printed\" ";
+$def[1] .= "LINE:pages#404040 ";
+$def[1] .= "GPRINT:pages:MIN:\"%7.3lf %s first\" ";
+$def[1] .= "GPRINT:pages:LAST:\"%7.3lf %s last\" ";
+?>



More information about the checkmk-commits mailing list