Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / pnp-templates / check_mk-oracle_tablespaces.php
blob717fb2d1d0cb48f884a54d672d4560bf52131ea2
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("_", " ", $servicedesc);
29 $opt[1] = "--vertical-label 'GB' -l0 --title \"$title\" ";
31 $def[1] = "DEF:current=$RRDFILE[1]:$DS[1]:MAX " ;
32 $def[1] .= "DEF:used=$RRDFILE[2]:$DS[2]:MAX " ;
33 $def[1] .= "DEF:max=$RRDFILE[3]:$DS[3]:MAX " ;
34 $def[1] .= "CDEF:current_gb=current,1073741824.0,/ ";
35 $def[1] .= "CDEF:max_gb=max,1073741824.0,/ ";
36 $def[1] .= "CDEF:used_gb=used,1073741824.0,/ ";
38 $def[1] .= "AREA:max_gb#80c0ff:\"Maximum size\" " ;
39 $def[1] .= "LINE:max_gb#6080c0:\"\" " ;
40 $def[1] .= "GPRINT:max_gb:LAST:\"%2.2lfGB\" ";
41 $def[1] .= "AREA:current_gb#00ff80:\"Current size\" " ;
42 $def[1] .= "LINE:current_gb#008040:\"\" " ;
43 $def[1] .= "GPRINT:current_gb:LAST:\"%2.2lfGB\" ";
44 $def[1] .= "AREA:used_gb#f0b000:\"Used by user data\" " ;
45 $def[1] .= "LINE:used_gb#806000:\"\" " ;
46 $def[1] .= "GPRINT:used_gb:LAST:\"%2.2lfGB\" ";