Module: check_mk
Branch: master
Commit: c0814e9288846475fa19e9d13354fb86239f7c97
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c0814e92888464…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Nov 24 12:15:22 2016 +0100
4092 FIX if.include: fixed wrong calculated number of interfaces which are up
---
.werks/4092 | 10 ++++++++++
ChangeLog | 1 +
checks/if.include | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4092 b/.werks/4092
new file mode 100644
index 0000000..a60c7d2
--- /dev/null
+++ b/.werks/4092
@@ -0,0 +1,10 @@
+Title: if.include: fixed wrong calculated number of interfaces which are up
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i3
+Date: 1479985997
+
+
diff --git a/ChangeLog b/ChangeLog
index e38b932..7fcd02f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,7 @@
* 4090 FIX: apc_rackpdu_power, apc_symmetra, apc_symmetra_input, apc_symmetra_output:
some fixes...
* 4091 FIX: oracle_tablespace: Werk 3907 broke the detection of UNDO- and
TEMP-Tablespaces
* 4069 FIX: cmciii.phase: Fixed broken check with some devices...
+ * 4092 FIX: if.include: fixed wrong calculated number of interfaces which are up
Multisite:
* 3974 FIX: Sorting comments in hover menu of comments icon by time now
diff --git a/checks/if.include b/checks/if.include
index 4a866df..a5b7cd1 100644
--- a/checks/if.include
+++ b/checks/if.include
@@ -513,7 +513,7 @@ def check_if_common(item, params, info, has_nodeinfo = False,
group_name = "Grou
ifOutQLen, ifAlias, ifPhysAddress = line
if ifOperStatus == '1' or (
- type(ifOperStatus) == tuple and ifOperStatus == '1'):
+ type(ifOperStatus) == tuple and ifOperStatus[0] == '1'):
num_up += 1
if num_up == len(matching_interfaces):