Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / pnp-templates / check_mk-jolokia_metrics.gc.php
blobd37701457ef6811ccfa90e97793f61afe18e87e5
1 <?php
2 # +------------------------------------------------------------------+
3 # | ____ _ _ __ __ _ __ |
4 # | / ___| |__ ___ ___| | __ | \/ | |/ / |
5 # | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
6 # | | |___| | | | __/ (__| < | | | | . \ |
7 # | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
8 # | |
9 # | Copyright Mathias Kettner 2014 mk@mathias-kettner.de |
10 # +------------------------------------------------------------------+
12 # This file is part of Check_MK.
13 # The official homepage is at http://mathias-kettner.de/check_mk.
15 # check_mk is free software; you can redistribute it and/or modify it
16 # under the terms of the GNU General Public License as published by
17 # the Free Software Foundation in version 2. check_mk is distributed
18 # in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
19 # out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
20 # PARTICULAR PURPOSE. See the GNU General Public License for more de-
21 # tails. You should have received a copy of the GNU General Public
22 # License along with GNU Make; see the file COPYING. If not, write
23 # to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
24 # Boston, MA 02110-1301 USA.
27 $opt[1] = "--vertical-label \"GC Count\" --title \" $servicedesc for $hostname\" ";
29 $def[1] = "DEF:c=$RRDFILE[1]:$DS[1]:AVERAGE ";
31 $def[1] .= rrd::comment("$NAME[1]\: \\n");
32 $def[1] .= "AREA:c#3bfcdf:\"\" " ;
33 $def[1] .= "LINE1:c#00b499:\"GC Count per Minute\" " ;
34 $def[1] .= "GPRINT:c:LAST:\"%3.4lg LAST \" ";
35 $def[1] .= "GPRINT:c:AVERAGE:\"%3.4lg AVERAGE \" ";
36 $def[1] .= "GPRINT:c:MAX:\"%3.4lg MAX \\n\" ";
38 if ($WARN[1] != "") {
39 $def[1] .= "HRULE:$WARN[1]#FFFF00:\"Warning at $WARN[1]$UNIT[1] \\n\" ";
41 if ($CRIT[1] != "") {
42 $def[1] .= "HRULE:$CRIT[1]#FF0000:\"Critical at $CRIT[1]$UNIT[1] \\n\" ";
45 $opt[2] = "--vertical-label \"GC Time\" --title \" $servicedesc for $hostname\" ";
47 $def[2] = "DEF:t=$RRDFILE[2]:$DS[2]:AVERAGE ";
49 $def[2] .= rrd::comment("$NAME[2]\: \\n");
50 $def[2] .= "AREA:t#ffc7ac:\"\" " ;
51 $def[2] .= "LINE1:t#ff6d25:\"GC Time (ms) per Minute\" " ;
52 $def[2] .= "GPRINT:t:LAST:\"%3.0lf$UNIT[2] LAST \" ";
53 $def[2] .= "GPRINT:t:AVERAGE:\"%3.2lf$UNIT[2] AVERAGE \" ";
54 $def[2] .= "GPRINT:t:MAX:\"%3.2lf$UNIT[2] MAX \\n\" ";
55 if ($WARN[2] != "") {
56 $def[2] .= "HRULE:$WARN[2]#FFFF00:\"Warning at $WARN[2]$UNIT[2] \\n\" ";
58 if ($CRIT[2] != "") {
59 $def[2] .= "HRULE:$CRIT[2]#FF0000:\"Critical at $CRIT[2]$UNIT[2] \\n\" ";