Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / pnp-templates / check_mk-lparstat_aix.php
blob5996c859d6ac67156f64c4a9060c3934849f9b51
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 # +------------------------------------------------------------------+
27 # | This file has been contributed and is copyrighted by: |
28 # | |
29 # | Joerg Linge 2009 <joerg.linge@pnp4nagios.org> Copyright 2010 |
30 # +------------------------------------------------------------------+
32 $opt[1] = "--vertical-label '%' -l0 --title \"LPAR CPU Usage\" ";
34 $def[1] = "DEF:user=$RRDFILE[1]:$DS[1]:AVERAGE " ;
35 $def[1] .= "DEF:sys=$RRDFILE[2]:$DS[2]:AVERAGE " ;
36 $def[1] .= "DEF:wait=$RRDFILE[3]:$DS[3]:AVERAGE " ;
37 $def[1] .= "DEF:idle=$RRDFILE[4]:$DS[4]:AVERAGE " ;
39 $def[1] .= "AREA:user#80ff40:\"user\\t\" " ;
40 $def[1] .= "GPRINT:user:LAST:\"%2.1lf %% last\" " ;
41 $def[1] .= "GPRINT:user:AVERAGE:\"%2.1lf MB avg\" " ;
42 $def[1] .= "GPRINT:user:MAX:\"%2.1lf MB max\\n\" ";
44 $def[1] .= "AREA:sys#008030:\"sys\\t\":STACK " ;
45 $def[1] .= "GPRINT:sys:LAST:\"%2.1lf %% last\" " ;
46 $def[1] .= "GPRINT:sys:AVERAGE:\"%2.1lf %% avg\" " ;
47 $def[1] .= "GPRINT:sys:MAX:\"%2.1lf %% max\\n\" " ;
49 $def[1] .= "AREA:wait#f00:\"wait\\t\":STACK " ;
50 $def[1] .= "GPRINT:wait:LAST:\"%2.1lf %% last\" " ;
51 $def[1] .= "GPRINT:wait:AVERAGE:\"%2.1lf %% avg\" " ;
52 $def[1] .= "GPRINT:wait:MAX:\"%2.1lf %% max\\n\" " ;
54 $def[1] .= "AREA:idle#00000020:\"idle\\t\":STACK " ;
55 $def[1] .= "GPRINT:idle:LAST:\"%2.1lf %% last\" " ;
56 $def[1] .= "GPRINT:idle:AVERAGE:\"%2.1lf %% avg\" " ;
57 $def[1] .= "GPRINT:idle:MAX:\"%2.1lf %% max\\n\" " ;
59 $opt[2] = "--vertical-label 'physc' -l0 --title \"LPAR physical CPU usage\" ";
61 $def[2] = "DEF:physc=$RRDFILE[5]:$DS[5]:AVERAGE " ;
62 $def[2] .= "AREA:physc#80ff40:\"physc\\t\" " ;
63 $def[2] .= "LINE1:physc#000: " ;
64 $def[2] .= "GPRINT:physc:LAST:\"%2.2lf last\" " ;
65 $def[2] .= "GPRINT:physc:AVERAGE:\"%2.2lf avg\" " ;
66 $def[2] .= "GPRINT:physc:MAX:\"%2.2lf max\\n\" ";