Module: check_mk
Branch: master
Commit: 0d148250e7cddc0f3120a8b79ba9f07f8b93c582
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0d148250e7cddc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Apr 14 10:59:39 2011 +0200
FIX: fc_brocade_port_detailed: fix PNP template in MULTIPLE mode
---
ChangeLog | 1 +
.../check_mk-fc_brocade_port_detailed.php | 12 ++++++------
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index af8abb8..4597d94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -47,6 +47,7 @@
* FIX: heartbeat_rscstatus handles empty agent output correctly
* FIX: hp_procurve_cpu: fix synatx error in man page
* FIX: hp_procurve_memory: fix syntax error in man page
+ * FIX: fc_brocade_port_detailed: fix PNP template in MULTIPLE mode
* printer_supply: Changed order of tests. When a printer reports -3 this
is used before the check if maxlevel is -2.
* printer_supply: Skipping inventory of supplies which have current value
diff --git a/pnp-templates/check_mk-fc_brocade_port_detailed.php
b/pnp-templates/check_mk-fc_brocade_port_detailed.php
index 32c486c..e423370 100644
--- a/pnp-templates/check_mk-fc_brocade_port_detailed.php
+++ b/pnp-templates/check_mk-fc_brocade_port_detailed.php
@@ -64,13 +64,13 @@ if ($MAX[1] != "") {
$ds_name[2] = 'Error counter';
$opt[2] = "--vertical-label \"Error counter\" --title \"Problems on
$hostname / $servicedesc\" ";
-$def[2] = "DEF:crcerrors=$RRDFILE[1]:$DS[3]:MAX " ;
-$def[2] .= "DEF:encout=$RRDFILE[1]:$DS[4]:MAX " ;
-$def[2] .= "DEF:c3discards=$RRDFILE[1]:$DS[5]:MAX " ;
+$def[2] = "DEF:crcerrors=$RRDFILE[3]:$DS[3]:MAX " ;
+$def[2] .= "DEF:encout=$RRDFILE[4]:$DS[4]:MAX " ;
+$def[2] .= "DEF:c3discards=$RRDFILE[5]:$DS[5]:MAX " ;
$def[2] .= "LINE1:crcerrors#ff0000:\"CRC Errors \" " ;
-$def[2] .= "GPRINT:crcerrors:LAST:\"%.0lf\\n\" " ;
+$def[2] .= "GPRINT:crcerrors:LAST:\"last\: %.0lf\\n\" " ;
$def[2] .= "LINE1:encout#60a020:\"ENC-Out \" " ;
-$def[2] .= "GPRINT:encout:LAST:\"%.0lf\\n\" " ;
+$def[2] .= "GPRINT:encout:LAST:\"last\: %.0lf\\n\" " ;
$def[2] .= "LINE1:c3discards#2060a0:\"Class 3 Discards\" " ;
-$def[2] .= "GPRINT:c3discards:LAST:\"%.0lf\\n\" " ;
+$def[2] .= "GPRINT:c3discards:LAST:\"last\: %.0lf\\n\" " ;
?>