Module: check_mk
Branch: master
Commit: 856e97b3b5a906f0ab38c0bc9345495230e88f0e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=856e97b3b5a906…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Sep 22 16:15:06 2014 +0200
hivemanager_devices: Added PNP template
---
pnp-templates/check_mk-hivemanager_devices.php | 47 ++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/pnp-templates/check_mk-hivemanager_devices.php b/pnp-templates/check_mk-hivemanager_devices.php
new file mode 100644
index 0000000..0b8bd74
--- /dev/null
+++ b/pnp-templates/check_mk-hivemanager_devices.php
@@ -0,0 +1,47 @@
+<?php
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2014 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.
+
+# Devices
+$opt[1] = "--vertical-label 'Sessions' -l0 -X0 --title \"$servicedesc / Active Clients\" ";
+
+$def[1] = "DEF:clients=$RRDFILE[1]:$DS[1]:MAX ";
+$def[1] .= "AREA:clients#0030f0:\"Active Sessions\" ";
+$def[1] .= "LINE:clients#001f80 ";
+$def[1] .= "GPRINT:clients:LAST:\"%7.0lf %s last\" ";
+$def[1] .= "GPRINT:clients:MAX:\"%7.0lf %s max\" ";
+$def[1] .= "GPRINT:clients:AVERAGE:\"%7.2lf %s avg\\n\" ";
+$def[1] .= "HRULE:$WARN[1]#ffff00:\"Warning at $WARN[1]\\n\" ";
+$def[1] .= "HRULE:$CRIT[1]#ff0000:\"Critical at $CRIT[1]\\n\" ";
+
+# Uptime
+$opt[2] = "--vertical-label 'Uptime (d)' -l0 --title \"Uptime (time since last reboot)\" ";
+
+$def[2] = "DEF:sec=$RRDFILE[2]:$DS[2]:MAX ";
+$def[2] .= "CDEF:uptime=sec,86400,/ ";
+$def[2] .= "AREA:uptime#80f000:\"Uptime (days)\" ";
+$def[2] .= "LINE:uptime#408000 ";
+$def[2] .= "GPRINT:uptime:LAST:\"%7.2lf %s LAST\" ";
+$def[2] .= "GPRINT:uptime:MAX:\"%7.2lf %s MAX\" ";
+?>
Module: check_mk
Branch: master
Commit: ca833488b6c6aca367f7a8fa9d5ba2fb769ba0e1
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ca833488b6c6ac…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Sep 18 14:39:25 2014 +0200
#1403 kernel.util: allow levels for the total CPU utilization
The CPU utilization check for Linux only allowed to set levels for the disk
wait percentage. The parameters have been converted to a dictionary and
now allow to set levels on the total CPU utilization as well.
Please note: if you have defined the variable {kernel_util_default_levels} in
your {main.mk}, then you need to convert this to a dictionary - otherwise it
will be ignored. Instead of
F+:main.mk
kernel_util_default_levels = (10, 20)
F-:
... please now write...:
F+:main.mk
kernel_util_default_levels = { "iowait" : (10, 20) }
F-:
Users of WATO are not affected by this and do not need to change anything.
---
.werks/1403 | 26 +++++++++++++
ChangeLog | 2 +
checkman/kernel.util | 19 +++++----
checks/kernel | 70 ++++++++++++++++++++++------------
web/plugins/wato/check_parameters.py | 53 +++++++++++++++++--------
5 files changed, 121 insertions(+), 49 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=ca833488b6…