Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / pnp-templates / check_mk-tsm_stagingpools.php
blob76fe0009cb8b1e5d77836d56917ed48a7a6301c1
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.
28 # cut TSM part from service description
29 $item = substr($servicedesc, 16);
30 # if ___ is in the item, then we have info on the TSM farm and the Poolname
31 # split it. otherwise, keep the item name unchanged.
32 $parts = explode("___", $item);
33 $info = (isset($parts[1])) ? $parts[1] . " (".$parts[0].")" : $item;
36 $opt[1] = "-l0 --vertical-label \"Tapes\" --title \"Occupancy of $info\" ";
39 $def[1] = "DEF:tapes=$RRDFILE[1]:$DS[1]:MAX ".
40 "DEF:free=$RRDFILE[2]:$DS[1]:MAX ".
41 "DEF:util=$RRDFILE[3]:$DS[1]:MAX ".
42 "AREA:tapes#cd853f:\"Tapes in Pool \" ".
43 "AREA:free#a000ff:\"Free Tapes \" ".
44 "LINE3:util#5f1010:\"Utilization \" ".
45 "";