Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / pnp-templates / check_mk-dell_powerconnect_cpu.php
blobdfed414e1ff31cd669d0b807d410811cbc21af29
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 # Modified by: Chris Bowlby <cbowlby@tenthpowertech.com>
28 $ds_name[1] = "CPU Utilization Load Averages";
30 $opt[1] = "--vertical-label 'CPU utilization (%)' --slope-mode -l0 -u 100 --title \"CPU Utilization $hostname\" -w 600";
33 $def[1] = "DEF:load1=$RRDFILE[1]:$DS[1]:MAX ".
34 "DEF:load2=$RRDFILE[2]:$DS[2]:MAX ".
35 "DEF:load3=$RRDFILE[3]:$DS[3]:MAX ".
36 "HRULE:$WARN[1]#ffe000:\"Warning at $WARN[1]%\" ".
37 "HRULE:$CRIT[1]#ff0000:\"Critical at $CRIT[1]% \\n\" ".
38 "AREA:load1#40a018:\"CPU Load (1s)\" ".
39 "GPRINT:load1:LAST:\"Cur\: %.0lf %s$UNIT[1] \" ".
40 "GPRINT:load1:AVERAGE:\"Avg\: %.0lf %s$UNIT[1] \" ".
41 "GPRINT:load1:MIN:\"Min\: %.0lf %s$UNIT[1] \" ".
42 "GPRINT:load1:MAX:\"Max\: %.0lf %s$UNIT[1] \\n\" ".
43 "LINE:load2#0011FF:\"CPU Load (1m)\" ".
44 "GPRINT:load2:LAST:\"Cur\: %.0lf %s$UNIT[2] \" ".
45 "GPRINT:load2:AVERAGE:\"Avg\: %.0lf %s$UNIT[2] \" ".
46 "GPRINT:load2:MIN:\"Min\: %.0lf %s$UNIT[2] \" ".
47 "GPRINT:load2:MAX:\"Max\: %.0lf %s$UNIT[2] \\n\" ".
48 "LINE:load3#00AAFF:\"CPU Load (5m)\" ".
49 "GPRINT:load3:LAST:\"Cur\: %.0lf %s$UNIT[3] \" ".
50 "GPRINT:load3:AVERAGE:\"Avg\: %.0lf %s$UNIT[3] \" ".
51 "GPRINT:load3:MIN:\"Min\: %.0lf %s$UNIT[3] \" ".
52 "GPRINT:load3:MAX:\"Max\: %.0lf %s$UNIT[3] \\n\" ".
53 "";