Module: check_mk
Branch: master
Commit: e6c137f792aaa7a2576009815f07010cdf2b0eef
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e6c137f792aaa7…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Wed Jul 23 23:24:43 2014 +0200
jolokia_metrics.gc, jolokia_metrics.tp: now come with its own pnp templates
---
.werks/640 | 8 ++++
ChangeLog | 3 +-
pnp-templates/check_mk-jolokia_metrics.gc.php | 61 ++++++++++++++++++++++++
pnp-templates/check_mk-jolokia_metrics.tp.php | 63 +++++++++++++++++++++++++
4 files changed, 134 insertions(+), 1 deletion(-)
diff --git a/.werks/640 b/.werks/640
new file mode 100644
index 0000000..5fb4c7b
--- /dev/null
+++ b/.werks/640
@@ -0,0 +1,8 @@
+Title: jolokia_metrics.gc, jolokia_metrics.tp: now come with its own pnp templates
+Level: 1
+Component: checks
+Version: 1.2.5i5
+Date: 1406150640
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index c8ea5d9..8781323 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,6 +40,7 @@
* 1135 bintec_sensors.voltage, bintec_sensors.temp: New Checks for Voltage and
Temperature Sensors of Bintec Routers
* 1048 mem.win: support predictive levels...
* 1136 bintec_brrp_status: New Check for BRRP States on Bintec Routers
+ * 0640 jolokia_metrics.gc, jolokia_metrics.tp: now come with its own pnp templates
* 0994 FIX: agent plugin smart: fixed syntax error
* 0989 FIX: logwatch.ec: Fix forwarding multiple messages via syslog/TCP...
* 0943 FIX: if.include: fixed incorrect traffic percentage values in the check output
of if checks...
@@ -67,9 +68,9 @@
* 1083 FIX: ad_replication.bat: does not return data if the server is no DC
* 0638 FIX: windows_updates: agent plugin now always sends section header, even if no
update information provided...
* 1084 FIX: ps: now able to handle bigger process groups without constant
MKCounterWrapped Exceptions...
- * 0639 FIX: jolokia_metrics: fix for problem when catalina uses the standalone
engine
* 1087 FIX: Active checks: Non-ascii check commands now converted into utf-8...
* 1049 FIX: ups_capacity: Fix exception when running on battery...
+ * 0639 FIX: jolokia_metrics: fix for problem when catalina uses the standalone
engine
Multisite:
* 1013 Sort host names naturally, e.g. foobar11 comes after foobar2...
diff --git a/pnp-templates/check_mk-jolokia_metrics.gc.php
b/pnp-templates/check_mk-jolokia_metrics.gc.php
new file mode 100644
index 0000000..aeb314a
--- /dev/null
+++ b/pnp-templates/check_mk-jolokia_metrics.gc.php
@@ -0,0 +1,61 @@
+<?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.
+
+
+$opt[1] = "--vertical-label \"GC Count\" --title \" $servicedesc for
$hostname\" ";
+
+$def[1] = "DEF:c=$RRDFILE[1]:$DS[1]:AVERAGE ";
+
+$def[1] .= rrd::comment("$NAME[1]\: \\n");
+$def[1] .= "AREA:c#3bfcdf:\"\" " ;
+$def[1] .= "LINE1:c#00b499:\"GC Count per Minute\" " ;
+$def[1] .= "GPRINT:c:LAST:\"%3.4lg LAST \" ";
+$def[1] .= "GPRINT:c:AVERAGE:\"%3.4lg AVERAGE \" ";
+$def[1] .= "GPRINT:c:MAX:\"%3.4lg MAX \\n\" ";
+
+if ($WARN[1] != "") {
+ $def[1] .= "HRULE:$WARN[1]#FFFF00:\"Warning at $WARN[1]$UNIT[1] \\n\"
";
+}
+if ($CRIT[1] != "") {
+ $def[1] .= "HRULE:$CRIT[1]#FF0000:\"Critical at $CRIT[1]$UNIT[1] \\n\"
";
+}
+
+$opt[2] = "--vertical-label \"GC Time\" --title \" $servicedesc for
$hostname\" ";
+
+$def[2] = "DEF:t=$RRDFILE[2]:$DS[2]:AVERAGE ";
+
+$def[2] .= rrd::comment("$NAME[2]\: \\n");
+$def[2] .= "AREA:t#ffc7ac:\"\" " ;
+$def[2] .= "LINE1:t#ff6d25:\"GC Time (ms) per Minute\" " ;
+$def[2] .= "GPRINT:t:LAST:\"%3.0lf$UNIT[2] LAST \" ";
+$def[2] .= "GPRINT:t:AVERAGE:\"%3.2lf$UNIT[2] AVERAGE \" ";
+$def[2] .= "GPRINT:t:MAX:\"%3.2lf$UNIT[2] MAX \\n\" ";
+if ($WARN[2] != "") {
+ $def[2] .= "HRULE:$WARN[2]#FFFF00:\"Warning at $WARN[2]$UNIT[2] \\n\"
";
+}
+if ($CRIT[2] != "") {
+ $def[2] .= "HRULE:$CRIT[2]#FF0000:\"Critical at $CRIT[2]$UNIT[2] \\n\"
";
+}
+?>
diff --git a/pnp-templates/check_mk-jolokia_metrics.tp.php
b/pnp-templates/check_mk-jolokia_metrics.tp.php
new file mode 100644
index 0000000..cf53c1a
--- /dev/null
+++ b/pnp-templates/check_mk-jolokia_metrics.tp.php
@@ -0,0 +1,63 @@
+<?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.
+
+
+$opt[1] = "--vertical-label \"ThreadPool busy/count\" --title \"
$servicedesc for $hostname\" ";
+
+$def[1] = "DEF:b=$RRDFILE[1]:$DS[1]:AVERAGE ";
+$def[1] .= "DEF:c=$RRDFILE[2]:$DS[2]:AVERAGE " ;
+
+
+# BUSY
+$def[1] .= rrd::comment("$NAME[2]\: ");
+$def[1] .= "AREA:c#00ff77:\"\" " ;
+$def[1] .= "LINE1:c#00b454:\"busy\" " ;
+$def[1] .= "GPRINT:c:LAST:\"%3.4lg LAST \" ";
+$def[1] .= "GPRINT:c:AVERAGE:\"%3.4lg AVERAGE \" ";
+$def[1] .= "GPRINT:c:MAX:\"%3.4lg MAX \\n\" ";
+if ($WARN[2] != "") {
+ $def[1] .= "HRULE:$WARN[2]#FFFF00:\" Warning at $WARN[2]$UNIT[2] \"
";
+}
+if ($CRIT[2] != "") {
+ $def[1] .= "HRULE:$CRIT[2]#FF0000:\" Critical at $CRIT[2]$UNIT[2] \"
";
+}
+# MAX
+$def[1] .= "HRULE:$MAX[1]#000000:\" Max at $MAX[1] \\n\" ";
+
+
+# COUNT
+$def[1] .= rrd::comment("$NAME[1]\: ");
+$def[1] .= "LINE1:b#00aae8:\"count\" " ;
+$def[1] .= "GPRINT:b:LAST:\"%3.4lg LAST \" ";
+$def[1] .= "GPRINT:b:AVERAGE:\"%3.4lg AVERAGE \" ";
+$def[1] .= "GPRINT:b:MAX:\"%3.4lg MAX \\n\" ";
+if ($WARN[1] != "") {
+ $def[1] .= "HRULE:$WARN[1]#E5B200:\" Warning at $WARN[1]$UNIT[1] \"
";
+}
+if ($CRIT[1] != "") {
+ $def[1] .= "HRULE:$CRIT[1]#E50066:\" Critical at $CRIT[1]$UNIT[1]
\\n\" ";
+}
+
+?>