Module: check_mk
Branch: master
Commit: cc2b26c74adbd110a2369da15b61c3209b312ba7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cc2b26c74adbd1…
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 | 3 +++
checks/lnx_if | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 458f230..30d9edc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,9 @@
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.
+ (Thanks to Karl-Heinz Fiebig)
Multisite:
* FIX: make non-Ascii characters in services names work again
diff --git a/checks/lnx_if b/checks/lnx_if
index 0a9e776..6af982f 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
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
# Link state from ethtool. If ethtool has no information about
# this NIC, we set the state to unknown.