Module: check_mk
Branch: master
Commit: d1b768fcee679d26c557b9cb5460a209ec0469d8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d1b768fcee679d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 6 15:41:07 2013 +0200
jolokia_metrics.uptime: Added pnp template
---
ChangeLog | 1 +
pnp-templates/check_mk-jolokia_metrics.uptime.php | 36 +++++++++++++++++++++
2 files changed, 37 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 1eb21b9..13b4fdf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -65,6 +65,7 @@
* windows_agent: increased maximum local/plugin script output length to 512kB
(output buffer now grows dynamically)
* jolokia_metrics: fixed incorrect plugin output for high warn/crit levels
+ * jolokia_metrics.uptime: Added pnp template
* hyperv: Added a check for checking state changes.
* df / esx_vsphere_datastore: now able to set absolute levels and levels depending
on total disk space of used and free space
diff --git a/pnp-templates/check_mk-jolokia_metrics.uptime.php b/pnp-templates/check_mk-jolokia_metrics.uptime.php
new file mode 100644
index 0000000..7af9ca2
--- /dev/null
+++ b/pnp-templates/check_mk-jolokia_metrics.uptime.php
@@ -0,0 +1,36 @@
+<?php
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | 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.
+
+$title = str_replace("_", " ", $servicedesc);
+$opt[1] = "--vertical-label 'Uptime (days)' -l0 --title \"$hostname / $title: Time since last reboot\" ";
+
+$def[1] = "DEF:sec=$RRDFILE[1]:$DS[1]:MAX ";
+$def[1] .= "CDEF:uptime=sec,86400,/ ";
+$def[1] .= "AREA:uptime#80f000:\"Uptime (days)\"\\n ";
+$def[1] .= "LINE:uptime#408000 ";
+$def[1] .= "GPRINT:uptime:LAST:\"%7.2lf %s LAST\"\\t ";
+$def[1] .= "GPRINT:uptime:MAX:\"%7.2lf %s MAX\" ";
+$def[1] .= "GPRINT:uptime:AVERAGE:\"%7.2lf %s AVG\" ";
+?>
Module: check_mk
Branch: master
Commit: f43309b6c92bf6e6ef459d4ce53d45b7263c4253
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f43309b6c92bf6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Sep 9 17:05:12 2013 +0200
Updated bug entries #0950
---
.bugs/950 | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/.bugs/950 b/.bugs/950
new file mode 100644
index 0000000..278c265
--- /dev/null
+++ b/.bugs/950
@@ -0,0 +1,20 @@
+Title: Handle limit-settings sensefully at availability reporting
+Component: multisite
+State: open
+Date: 2013-09-09 16:33:52
+Targetversion: 1.4.0
+Class: nastiness
+
+The problem is: we cannot simply us Limit: when querying statehist, since this will
+create invalid availability data - silently. The Limit: needs to be applied on the
+number of result rows, i.e. hosts and services. This cannot be done with Livestatus
+but would need to be done in the AV GUI.
+
+Furthermore: an AV-report with 1000 services could be very harmful when it
+comes to performance.
+
+One solution could be to hide the AV-Button whenever a query produces more
+than X results.
+
+Another solution could be to implement the Limit just as it should be -
+i.e. count the number of lines in the AV GUI.