Module: check_mk
Branch: master
Commit: 14927b90ab4c3f0cf774cb9ab9615c65f1e01e65
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=14927b90ab4c3f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jun 16 11:09:26 2011 +0200
lnx_if: treat non-ethtool-aware interfaces as softwareLoopback
---
ChangeLog | 2 ++
checks/lnx_if | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 458f230..0b07818 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,8 @@
default thresholds to 5/10 refclock offset
* brocade_port: parameter for phystate, opstate and admstate can now
also be lists of allowed states.
+ * lnx_if: treat interfaces without information from ethtool as
+ softwareLoopback interface. The will not be found by inventory now.
Multisite:
* FIX: make non-Ascii characters in services names work again
diff --git a/checks/lnx_if b/checks/lnx_if
index 0a9e776..6477059 100644
--- a/checks/lnx_if
+++ b/checks/lnx_if
@@ -85,6 +85,7 @@ def if_lnx_convert_to_if64(info):
speed_text = attr.get("Speed")
if speed_text == None:
ifSpeed = ''
+ ifType = 24 # Fiebig Karl-Heinz
else:
if speed_text == '65535Mb/s': # unknown
ifSpeed = ''
@@ -96,6 +97,7 @@ def if_lnx_convert_to_if64(info):
ifSpeed = int(speed_text[:-4]) * 1000000000
else:
ifSpeed = ''
+ ifType = 24 # Fiebig Karl-Heinz
# Link state from ethtool. If ethtool has no information about
# this NIC, we set the state to unknown.