Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / pnp-templates / check_mk-veeam_client.php
blobf13cad1e6a58a044e420d8d368724aca31d98d85
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 $opt[1] = "--vertical-label 'Bytes' -l 0 --title '$hostname: Total Size of Backup' ";
28 $def[1] = "DEF:mb=$RRDFILE[1]:$DS[1]:MAX ";
29 $def[1] .= "CDEF:var1=mb,1048576,/ ";
30 $def[1] .= "AREA:mb#d080af:\"Total Size \" ";
31 $def[1] .= "LINE1:mb#d020a0: ";
32 $def[1] .= "GPRINT:var1:LAST:\"last\: %8.1lf MB\" ";
33 $def[1] .= "GPRINT:var1:MAX:\"max\: %8.1lf MB \" ";
35 $opt[2] = "--vertical-label 'time (sec)' -l 0 -X 0 --title '$hostname: Duration of Backup' ";
37 $def[2] = "DEF:duration=$RRDFILE[2]:$DS[1]:MAX ";
38 $def[2] .= "AREA:duration#d080af:\"duration \" ";
39 $def[2] .= "LINE1:duration#d020a0: ";
40 $def[2] .= "GPRINT:duration:LAST:\"last\: %8.1lf s\" ";
41 $def[2] .= "GPRINT:duration:MAX:\"max\: %8.1lf s \" ";
42 $def[2] .= "GPRINT:duration:AVERAGE:\"avg\: %8.1lf s\\n\" ";
44 $opt[3] = "--vertical-label 'Bytes/sec' -l 0 --title '$hostname: Average Speed of Backup' ";
45 $def[3] = "DEF:avgspeed=$RRDFILE[3]:$DS[1]:MAX ";
46 $def[3] .= "CDEF:var2=avgspeed,1048576,/ ";
47 $def[3] .= "LINE1:avgspeed#d020a0:\"thruput\" ";
48 $def[3] .= "GPRINT:var2:LAST:\" last\: %8.2lf MB/s\" ";
49 $def[3] .= "GPRINT:var2:MAX:\"max\: %8.2lf MB/s \" ";
50 $def[3] .= "GPRINT:var2:AVERAGE:\"avg\: %8.2lf MB/s\\n\" ";