Refactoring: Moved check parameters from unsorted.py to dedicated modules (CMK-1393)
[check_mk.git] / pnp-templates / check_mk-postfix_mailq.php
blob9aabd44c841aff805426081e1336a0c15d7525fe
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 # (length=22;10;20;; size=2048;;;;)
27 $opt[1] = "--vertical-label Mails -l0 --title \"Mail Queue Length\" ";
28 $def[1] = "DEF:length=$RRDFILE[1]:$DS[1]:MAX " ;
29 $def[1] .= "HRULE:$WARN[1]#FFFF00 ";
30 $def[1] .= "HRULE:$CRIT[1]#FF0000 ";
31 $def[1] .= "AREA:length#6890a0:\"Mails\" " ;
32 $def[1] .= "LINE:length#2060a0 " ;
33 $def[1] .= "GPRINT:length:LAST:\"%6.2lf last\" " ;
34 $def[1] .= "GPRINT:length:AVERAGE:\"%6.2lf avg\" " ;
35 $def[1] .= "GPRINT:length:MAX:\"%6.2lf max\\n\" ";
38 $opt[2] = "--vertical-label MBytes -b1024 -X6 -l0 --title \"Mail Queue Size\" ";
39 $def[2] = "DEF:size=$RRDFILE[2]:$DS[2]:MAX " ;
40 $def[2] .= "CDEF:queue_mb=size,1048576,/ ";
41 $def[2] .= "AREA:queue_mb#65ab0e:\"Megabytes\" ";
42 $def[2] .= "LINE:queue_mb#206a0e ";
43 $def[2] .= "GPRINT:queue_mb:MAX:\"%6.2lf MB max\\n\" ";
45 # geht nicht.
46 #$def[2] .= "DEF:size_avg=$RRDFILE[2]:$DS[2]:AVG " ;
47 #$def[2] .= "DEF:size_last=$RRDFILE[2]:$DS[2]:LAST " ;
48 #$def[2] .= "CDEF:queue_mb_avg=size_avg,1048576,/ ";
49 #$def[2] .= "CDEF:queue_mb_last=size_last,1048576,/ ";
50 #$def[2] .= "GPRINT:queue_mb:LAST:\"%6.2lf MB last\" ";
51 #$def[2] .= "GPRINT:queue_mb:AVERAGE:\"%6.2lf MB avg\" ";