Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / pnp-templates / check_mk-netapp_api_vf_stats.traffic.php
bloba97986f06a47041349097cdf5176075d194adf39
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 # Performance data from check:
27 # read_ops=1.195013;;;;
28 # write_ops=2.257247;;;;
29 # net_data_recv=713.821034;;;;
30 # net_data_sent=2396.399187;;;;
31 # read_bytes=20819.780167;;;;
32 # write_bytes=832.791207;;;;
34 $opt[1] = "--vertical-label OPS --title \"Operations per second: $hostname / $servicedesc\" ";
36 $def[1] = "".
37 # read ops
38 "DEF:readops=$RRDFILE[1]:$DS[1]:MAX ".
39 "LINE:readops#00e060:\" Read OPS \" ".
40 "GPRINT:readops:LAST:\"%7.1lf OPS last\" ".
41 "GPRINT:readops:AVERAGE:\"%7.1lf OPS avg\" ".
42 "GPRINT:readops:MAX:\"%7.1lf OPS max\\n\" ".
44 # write ops
45 "DEF:writeops=$RRDFILE[2]:$DS[2]:MAX ".
46 "CDEF:minuswriteops=writeops,-1,* ".
47 "LINE:minuswriteops#0080e0:\"Write OPS \" ".
48 "GPRINT:writeops:LAST:\"%7.1lf OPS last\" ".
49 "GPRINT:writeops:AVERAGE:\"%7.1lf OPS avg\" ".
50 "GPRINT:writeops:MAX:\"%7.1lf OPS max\\n\" ".
52 "";
54 $opt[2] = "--vertical-label Bytes -b 1024 --title \"Net Data Traffic: $hostname / $servicedesc\" ";
56 $def[2] = "".
57 # net data recv
58 "DEF:data_recv=$RRDFILE[3]:$DS[3]:MAX ".
59 "LINE:data_recv#607030:\" Net Send \" ".
60 "GPRINT:data_recv:LAST:\"%7.1lf OPS last\" ".
61 "GPRINT:data_recv:AVERAGE:\"%7.1lf OPS avg\" ".
62 "GPRINT:data_recv:MAX:\"%7.1lf OPS max\\n\" ".
64 # net data send
65 "DEF:data_sent=$RRDFILE[4]:$DS[4]:MAX ".
66 "CDEF:minusdata_sent=data_sent,-1,* ".
67 "LINE:minusdata_sent#703090:\" Net Recv \" ".
68 "GPRINT:data_sent:LAST:\"%7.1lf OPS last\" ".
69 "GPRINT:data_sent:AVERAGE:\"%7.1lf OPS avg\" ".
70 "GPRINT:data_sent:MAX:\"%7.1lf OPS max\\n\" ".
72 "";
74 $opt[3] = "--vertical-label Bytes -b 1024 --title \"Bytes Traffic: $hostname / $servicedesc\" ";
75 $def[3] = "".
76 # read bytes
77 "DEF:read_bytes=$RRDFILE[5]:$DS[5]:MAX ".
78 "LINE:read_bytes#607030:\" Bytes Send \" ".
79 "GPRINT:read_bytes:LAST:\"%7.1lf OPS last\" ".
80 "GPRINT:read_bytes:AVERAGE:\"%7.1lf OPS avg\" ".
81 "GPRINT:read_bytes:MAX:\"%7.1lf OPS max\\n\" ".
83 # write bytes
84 "DEF:write_bytes=$RRDFILE[6]:$DS[6]:MAX ".
85 "CDEF:minuswrite_bytes=write_bytes,-1,* ".
86 "LINE:minuswrite_bytes#703090:\" Bytes Recv \" ".
87 "GPRINT:write_bytes:LAST:\"%7.1lf OPS last\" ".
88 "GPRINT:write_bytes:AVERAGE:\"%7.1lf OPS avg\" ".
89 "GPRINT:write_bytes:MAX:\"%7.1lf OPS max\\n\" ".
90 "";