Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / pnp-templates / check_mk-hpux_tunables.php
blob84ff9274cfe1411b73a9c957b24b85329e9d7dc6
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.
26 $title = str_replace("_", " ", substr($servicedesc, 10));
27 $vertical = "Number";
28 $format = "%4.0lf";
29 $color = "8040f0";
30 $line = "202060";
32 $opt[1] = " --vertical-label \"$vertical\" -X0 -L5 -l 0 -u $MAX[1] --title \"$title \" ";
34 $def[1] = "DEF:var1=$RRDFILE[1]:$DS[1]:MAX ".
35 "AREA:$MAX[1]#f3f3f2:\"\" ".
36 "LINE:$MAX[1]#8b8989:\"Kernel threshold\" ".
37 "AREA:var1#$color:\"$title\" ".
38 "LINE1:var1#$line:\"\" ".
39 "GPRINT:var1:LAST:\"Current\: $format\" ".
40 "GPRINT:var1:MAX:\"Peak\: $format \" ".
41 "";
43 # Add in warning / crit if they're passed to us.
44 if (isset($WARN[1]) and $WARN[1] != "") {
45 $def[1] .= "HRULE:$WARN[1]#FFFF00:\"Warning at $WARN[1]\" ".
46 "HRULE:$CRIT[1]#FF0000:\"Critical at $CRIT[1]\" ";