Module: check_mk
Branch: master
Commit: 91552907b4db9e0531d6176e685c340cee89a1bb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=91552907b4db9e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 6 11:16:49 2012 +0100
FIX: if.include: fix handling of NIC with index 0
---
ChangeLog | 1 +
checks/if.include | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f1d4b64..5a7671b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
Checks & Agents:
* hpux_if: fix missing default parameter errors
* hpux_if: make configurable via WATO
+ * if.include: fix handling of NIC with index 0
1.1.13i3:
Core, Setup, etc.:
diff --git a/checks/if.include b/checks/if.include
index f8ec10b..58203ce 100644
--- a/checks/if.include
+++ b/checks/if.include
@@ -163,6 +163,7 @@ def check_if_common(item, params, info):
ifAlias = cleanup_if_strings(ifAlias)
if item.lstrip("0") == ifIndex \
+ or (item == "0" * len(item) and saveint(ifIndex) == 0) \
or item == ifAlias \
or item == ifDescr \
or item == "%s %s" % (ifAlias, ifIndex) \