Module: check_mk
Branch: master
Commit: c85c56d2988c1bc9422d34e1e9aa199e829e3183
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c85c56d2988c1b…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Fri Jul 4 15:12:40 2014 +0200
FIX: of the fix of fc_port
---
checks/fc_port | 2 +-
web/plugins/perfometer/check_mk.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/fc_port b/checks/fc_port
index 7d14c79..beda840 100644
--- a/checks/fc_port
+++ b/checks/fc_port
@@ -150,7 +150,7 @@ def check_fc_port(item, params, info):
speedmsg = "assuming %g GBit/s" % gbit
else:
gbit = wirespeed * 8.0 / ( 1000.0 * 1000.0 * 1000.0 ) # in GBit/sec
- speedmsg = "%.1f GBit/s" % gb
+ speedmsg = "%.1f GBit/s" % gbit
output.append(speedmsg)
# Now check rates of various counters
diff --git a/web/plugins/perfometer/check_mk.py b/web/plugins/perfometer/check_mk.py
index cf8ff84..5e35c6a 100644
--- a/web/plugins/perfometer/check_mk.py
+++ b/web/plugins/perfometer/check_mk.py
@@ -459,7 +459,7 @@ perfometers["check_mk-esx_vsphere_counters.if"] =
perfometer_check_mk_if
perfometers["check_mk-hitachi_hnas_fc_if"] = perfometer_check_mk_if
def perfometer_check_mk_fc_port(row, check_command, perf_data):
- unit = "Byte/s"
+ unit = "B"
return perfometer_bandwidth(
in_traffic = savefloat(perf_data[0][1]),
out_traffic = savefloat(perf_data[5][1]),