Module: check_mk
Branch: master
Commit: b0eb713ed60c630682bad12f7d1e9cbfcca88c35
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0eb713ed60c63…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 27 09:59:49 2015 +0100
#2027 FIX fc_port: Fixed exception when wirespeed is reported as 0 by the device
---
.werks/2027 | 10 ++++++++++
ChangeLog | 1 +
checks/fc_port | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/2027 b/.werks/2027
new file mode 100644
index 0000000..1be5979
--- /dev/null
+++ b/.werks/2027
@@ -0,0 +1,10 @@
+Title: fc_port: Fixed exception when wirespeed is reported as 0 by the device
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1425027561
+
+
diff --git a/ChangeLog b/ChangeLog
index aa19dc4..ce063b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -206,6 +206,7 @@
* 1863 FIX: cisco_power: fix for cases with a slash in the device description of a
power supply...
NOTE: Please refer to the migration notes!
* 2023 FIX: if_lancom: Handle point-2-point interfaces of newer firmwares correctly
+ * 2027 FIX: fc_port: Fixed exception when wirespeed is reported as 0 by the device
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/fc_port b/checks/fc_port
index b265cc3..6ecec75 100644
--- a/checks/fc_port
+++ b/checks/fc_port
@@ -144,7 +144,7 @@ def check_fc_port(item, params, info):
if wirespeed == 0:
# let user specify assumed speed via check parameter, default is 16.0 GBit/sec
gbit = params.get("assumed_speed", 16.0)
- wirespeed = gb * 1000.0 * 1000.0 * 1000.0 / 8.0 # in Bytes/sec
+ wirespeed = gbit * 1000.0 * 1000.0 * 1000.0 / 8.0 # in Bytes/sec
speedmsg = "assuming %g GBit/s" % gbit
else:
gbit = wirespeed * 8.0 / ( 1000.0 * 1000.0 * 1000.0 ) # in GBit/sec