Refactoring: Changed remaining check parameters starting with an 's' to the new rules...
[check_mk.git] / pnp-templates / check_mk-sylo.php
blob52db01a6b69633887a304c804e2e32f8615599e5
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.
27 $ds_name[1] = 'Space';
28 $opt[1] = "--vertical-label \"Used space (MB)\" -l0 -X0 -u $MAX[3] -b 1024 --title \"Used space in syslog spooler for $hostname\" ";
29 $def[1] = "DEF:used=$RRDFILE[3]:$DS[3]:MAX " ;
30 $def[1] .= "AREA:used#ff8800:\"Used space \" ";
31 $def[1] .= "HRULE:$WARN[3]#FFFF00:\"Warning at $WARN[3] MB\" ";
32 $def[1] .= "HRULE:$CRIT[3]#FF0000:\"Critical at $CRIT[3] MB\" ";
33 $def[1] .= "HRULE:$MAX[3]#0044ff:\"Spool size $MAX[3] MB\" ";
34 $def[1] .= "GPRINT:used:LAST:\"%.1lf MB last\" " ;
35 $def[1] .= "GPRINT:used:AVERAGE:\"%.1lf MB avg\" " ;
36 $def[1] .= "GPRINT:used:MAX:\"%.1lf MB max\\n\" " ;
38 $ds_name[2] = 'Traffic';
39 $opt[2] = "--vertical-label \"Bytes/sec\" -X0 -b 1024 --title \"Syslog traffic for $hostname\" ";
40 $def[2] = "DEF:inbytes=$RRDFILE[1]:$DS[1]:AVERAGE " ;
41 $def[2] .= "DEF:outbytes=$RRDFILE[2]:$DS[2]:AVERAGE " ;
42 $def[2] .= "CDEF:outbytesn=0,outbytes,- " ;
43 $def[2] .= "AREA:inbytes#ff8800:\"Ingoing \" ";
44 $def[2] .= "GPRINT:inbytes:LAST:\"%.0lf B/s last\" " ;
45 $def[2] .= "GPRINT:inbytes:AVERAGE:\"%.0lf MB/s avg\" " ;
46 $def[2] .= "GPRINT:inbytes:MAX:\"%.0lf B/s max\\n\" " ;
47 $def[2] .= "AREA:outbytesn#44ccff:\"Outgoing\" ";
48 $def[2] .= "GPRINT:outbytes:LAST:\"%.0lf B/s last\" " ;
49 $def[2] .= "GPRINT:outbytes:AVERAGE:\"%.0lf MB/s avg\" " ;
50 $def[2] .= "GPRINT:outbytes:MAX:\"%.0lf B/s max\\n\" " ;