Module: check_mk
Branch: master
Commit: 3cbe151be8836b344bd8bfe7e7dfa93e88be7c47
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3cbe151be8836b…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Thu Oct 29 09:02:37 2015 +0100
deleted pnp template for winperf_processor as it interferes with auto-generated templates
---
pnp-templates/check_mk-winperf_processor.util.php | 99 ---------------------
1 file changed, 99 deletions(-)
diff --git a/pnp-templates/check_mk-winperf_processor.util.php
b/pnp-templates/check_mk-winperf_processor.util.php
deleted file mode 100644
index d9d232b..0000000
--- a/pnp-templates/check_mk-winperf_processor.util.php
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-# +------------------------------------------------------------------+
-# | ____ _ _ __ __ _ __ |
-# | / ___| |__ ___ ___| | __ | \/ | |/ / |
-# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
-# | | |___| | | | __/ (__| < | | | | . \ |
-# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
-# | |
-# | Copyright Mathias Kettner 2014 mk(a)mathias-kettner.de |
-# +------------------------------------------------------------------+
-#
-# This file is part of Check_MK.
-# The official homepage is at
http://mathias-kettner.de/check_mk.
-#
-# check_mk is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation in version 2. check_mk is distributed
-# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
-# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE. See the GNU General Public License for more de-
-# ails. You should have received a copy of the GNU General Public
-# License along with GNU Make; see the file COPYING. If not, write
-# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
-# Boston, MA 02110-1301 USA.
-
-# Do not depend on numbers, use names
-$RRD = array();
-foreach ($NAME as $i => $n) {
- $RRD[$n] = "$RRDFILE[$i]:$DS[$i]:MAX";
- $RRD_AVG[$n] = "$RRDFILE[$i]:$DS[$i]:AVERAGE";
- $WARN[$n] = $WARN[$i];
- $CRIT[$n] = $CRIT[$i];
- $MIN[$n] = $MIN[$i];
- $MAX[$n] = $MAX[$i];
-}
-
-$num_threads = $MAX[1];
-$warnthreads = $WARN[1] * $num_threads / 100.0;
-$critthreads = $CRIT[1] * $num_threads / 100.0;
-$rightscale = 100.0 / $num_threads;
-
-$opt[1] = "--vertical-label 'Used CPU threads' --right-axis $rightscale:0
--right-axis-format '%4.1lf%%' --right-axis-label 'Utilization %' -l0 -ru
$num_threads --title \"CPU Utilization for $hostname ($num_threads CPU
threads)\" ";
-
-$def[1] = "DEF:perc=$RRD_AVG[util] "
- . "CDEF:util=perc,$num_threads,*,100,/ "
- . "DEF:userperc=$RRD_AVG[user] "
- . "CDEF:user=userperc,$num_threads,*,100,/ "
- . "CDEF:privileged=util,user,- "
- . "CDEF:privilegedperc=privileged,$num_threads,/,100,* "
- ;
-
-$def[1] .= "HRULE:$MAX[util]#0040d0:\"$num_threads CPU Threads\\n\"
"
- ;
-
-$def[1] .= "LINE:util#50b01a:\"Utilization\: \" "
- . "GPRINT:perc:LAST:\"%4.1lf%%\" "
- . "GPRINT:util:LAST:\"(%3.1lf Threads) \" "
- . "GPRINT:perc:MIN:\"min\: %4.1lf%%,\t\" "
- . "GPRINT:util:MIN:\"(%4.1lf), \" "
- . "GPRINT:perc:MAX:\"max\: %4.1lf%%\" "
- . "GPRINT:util:MAX:\"(%4.1lf)\\n\" "
-
- . "AREA:privileged#f03020:\"Privileged perc\:\" "
- . "GPRINT:privilegedperc:LAST:\"%4.1lf%%\" "
- . "GPRINT:privileged:LAST:\"(%3.1lf Threads) \" "
- . "GPRINT:privilegedperc:MIN:\"min\: %4.1lf%%,\t\" "
- . "GPRINT:privileged:MIN:\"(%4.1lf), \" "
- . "GPRINT:privilegedperc:MAX:\"max\: %4.1lf%%\" "
- . "GPRINT:privileged:MAX:\"(%4.1lf)\\n\" "
-
- . "AREA:user#6060f0:\"User perc\: \":STACK "
- . "GPRINT:userperc:LAST:\"%4.1lf%%\" "
- . "GPRINT:user:LAST:\"(%3.1lf Threads) \" "
- . "GPRINT:userperc:MIN:\"min\: %4.1lf%%,\t\" "
- . "GPRINT:user:MIN:\"(%4.1lf), \" "
- . "GPRINT:userperc:MAX:\"max\: %4.1lf%%\" "
- . "GPRINT:user:MAX:\"(%4.1lf)\\n\" "
- ;
-
-
-if (isset($RRD_AVG["avg"])) {
- $def[1] .= "DEF:aperc=$RRD_AVG[avg] ".
- "CDEF:avg=aperc,$num_threads,*,100,/ ".
- "LINE:avg#004000:\"Averaged\: \" ".
- "GPRINT:aperc:LAST:\"%.1lf%%,\" ".
- "GPRINT:aperc:MIN:\"min\: %.1lf%%,\" ".
- "GPRINT:aperc:MAX:\"max\: %.1lf%%\\n\" ".
- "";
-}
-
-if ($WARN['util']) {
- $def[1] .= "HRULE:$warnthreads#fff000:\"Warn at $WARN[util]% \"
"
- . "HRULE:$critthreads#ff0000:\"Critical at $CRIT[util]%\\n\"
";
-}
-else {
- $def[1] .= "COMMENT:\"\\n\" ";
-}
-
-?>