Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / pnp-templates / check_mk-steelhead_connections.php
blob9d05b365493a99b3d1e7b9c11d249fbaaf7539da
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 # active=20;;;; established=8;;;; halfOpened=3;;;; halfClosed=4;;;; passthrough=35;;;;
27 $opt[1] = "--vertical-label 'Connections' -l0 --title \"Current connections on $hostname\" ";
29 $def[1] = "DEF:active=$RRDFILE[1]:$DS[1]:MAX " ;
30 $def[1] .= "DEF:est=$RRDFILE[2]:$DS[2]:MAX " ;
31 $def[1] .= "DEF:open=$RRDFILE[3]:$DS[3]:MAX " ;
32 $def[1] .= "DEF:close=$RRDFILE[4]:$DS[4]:MAX " ;
33 $def[1] .= "DEF:pass=$RRDFILE[5]:$DS[5]:MAX " ;
34 $def[1] .= "CDEF:opt=active,est,open,close,+,+,+ ";
35 $def[1] .= "CDEF:total=opt,pass,+ ";
37 $def[1] .= "AREA:active#30c040:\"Active \" " ;
38 $def[1] .= "GPRINT:active:LAST:\"%3.0lf\" " ;
40 $def[1] .= "AREA:est#40ff80:\"Established\":STACK " ;
41 $def[1] .= "GPRINT:est:LAST:\"%3.0lf\" " ;
43 $def[1] .= "AREA:open#0080c0:\"Half opened\":STACK " ;
44 $def[1] .= "GPRINT:open:LAST:\"%2.0lf\" " ;
46 $def[1] .= "AREA:close#00a0f0:\"Half closed\":STACK " ;
47 $def[1] .= "GPRINT:close:LAST:\"%2.0lf\\n\" " ;
50 $def[1] .= "LINE:total#ff3030:\"Total \" " ;
51 $def[1] .= "GPRINT:total:LAST:\"%3.0lf\" " ;
53 $def[1] .= "LINE:opt#008000:\"Optimized \" " ;
54 $def[1] .= "GPRINT:opt:LAST:\"%3.0lf\" " ;
56 $def[1] .= "AREA:pass#ffd0d0:\"Passthrough\":STACK " ;
57 $def[1] .= "GPRINT:pass:LAST:\"%3.0lf\"\\n " ;