Module: check_mk
Branch: master
Commit: 1c8b43bfe5d3b112b8df97972219514891f704f3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1c8b43bfe5d3b1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jun 20 16:41:49 2011 +0200
lnx_if: inventorize nics without speed again
---
checks/lnx_if | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/checks/lnx_if b/checks/lnx_if
index 6af982f..0a9e776 100644
--- a/checks/lnx_if
+++ b/checks/lnx_if
@@ -85,7 +85,6 @@ def if_lnx_convert_to_if64(info):
speed_text = attr.get("Speed")
if speed_text == None:
ifSpeed = ''
- ifType = 24
else:
if speed_text == '65535Mb/s': # unknown
ifSpeed = ''
@@ -97,7 +96,6 @@ def if_lnx_convert_to_if64(info):
ifSpeed = int(speed_text[:-4]) * 1000000000
else:
ifSpeed = ''
- ifType = 24
# Link state from ethtool. If ethtool has no information about
# this NIC, we set the state to unknown.