Module: check_mk
Branch: master
Commit: e4a79efd592741de02fb7323e6af3df820d52b8a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e4a79efd592741…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Fri Nov 8 15:43:50 2013 +0100
brocade_mlx: PNP templates
---
pnp-templates/check_mk-brocade_mlx.module_cpu.php | 8 +++--
pnp-templates/check_mk-brocade_mlx.module_mem.php | 36 ++++++++++++++++++++
pnp-templates/check_mk-brocade_mlx.temperature.php | 1 +
3 files changed, 42 insertions(+), 3 deletions(-)
diff --git a/pnp-templates/check_mk-brocade_mlx.module_cpu.php
b/pnp-templates/check_mk-brocade_mlx.module_cpu.php
index fd953f3..97e0d8c 100644
--- a/pnp-templates/check_mk-brocade_mlx.module_cpu.php
+++ b/pnp-templates/check_mk-brocade_mlx.module_cpu.php
@@ -23,7 +23,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-$opt[1] = "--vertical-label 'CPU utilization %' -l0 -u 100 --title
\"CPU Utilization for $hostname\" ";
+$opt[1] = "--vertical-label '%' -l0 -u 100 --title \"CPU
Utilization\" ";
#
$def[1] = "DEF:util1=$RRDFILE[1]:$DS[1]:AVERAGE " ;
$def[1] .= "DEF:util5=$RRDFILE[2]:$DS[1]:AVERAGE " ;
@@ -33,9 +33,11 @@ $def[1] .= "DEF:util300=$RRDFILE[4]:$DS[1]:AVERAGE " ;
$def[1] .= "AREA:util60#60f020:\"Utilization 60s\" " ;
$def[1] .= "GPRINT:util60:MIN:\"Min\: %2.1lf%%\" " ;
$def[1] .= "GPRINT:util60:MAX:\"Max\: %2.1lf%%\" " ;
-$def[1] .= "GPRINT:util60:LAST:\"Last\: %2.1lf%%\\n\" " ;
+$def[1] .= "GPRINT:util60:LAST:\"Last\: %2.1lf%%\" " ;
+$def[1] .= "HRULE:$WARN[3]#FFFF00:\"Warn\" " ;
+$def[1] .= "HRULE:$CRIT[3]#FF0000:\"Crit\\n\" " ;
-$def[1] .= "LINE:util1#000000:\"1s \" " ;
+$def[1] .= "LINE:util1#000000:\"Util 1s \" " ;
$def[1] .= "GPRINT:util1:LAST:\"Last\: %2.1lf%%\" " ;
$def[1] .= "LINE:util5#0000ff:\"5s \" " ;
diff --git a/pnp-templates/check_mk-brocade_mlx.module_mem.php
b/pnp-templates/check_mk-brocade_mlx.module_mem.php
new file mode 100644
index 0000000..99abfe1
--- /dev/null
+++ b/pnp-templates/check_mk-brocade_mlx.module_mem.php
@@ -0,0 +1,36 @@
+<?php
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2013 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.
+
+$opt[1] = "--vertical-label 'Bytes' -l 0 --title \"Main Memory
(RAM)\" ";
+#
+$def[1] = "DEF:used=$RRDFILE[1]:$DS[1]:AVERAGE " ;
+
+$def[1] .= "AREA:used#60f020:\"Used\" " ;
+$def[1] .= "GPRINT:used:MIN:\"Min\: %2.0lf Bytes\" " ;
+$def[1] .= "GPRINT:used:MAX:\"Max\: %2.0lf Bytes\" " ;
+$def[1] .= "GPRINT:used:LAST:\"Last\: %2.0lf Bytes\\n\" " ;
+$def[1] .= "HRULE:$WARN[1]#FFFF00:\"Warn\" " ;
+$def[1] .= "HRULE:$CRIT[1]#FF0000:\"Crit\\n\" " ;
+?>
diff --git a/pnp-templates/check_mk-brocade_mlx.temperature.php
b/pnp-templates/check_mk-brocade_mlx.temperature.php
new file mode 120000
index 0000000..fd89bc4
--- /dev/null
+++ b/pnp-templates/check_mk-brocade_mlx.temperature.php
@@ -0,0 +1 @@
+check_mk-dell_powerconnect_temp.php
\ No newline at end of file