Module: check_mk
Branch: master
Commit: a0ed7c25a7785027c443c73bdfd62edc9aecd33a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a0ed7c25a77850…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Aug 22 15:11:45 2017 +0200
Revert "5112 FIX if.include: Fixed wrong handling of duplicate interfaces if 'use alias' or 'use desccription' is configured"
This reverts commit 3254092ff6feefbd511c50c87d0dd3f0b6613651.
---
.werks/5112 | 19 -------------------
checks/if.include | 2 +-
2 files changed, 1 insertion(+), 20 deletions(-)
diff --git a/.werks/5112 b/.werks/5112
deleted file mode 100644
index 4c20abf..0000000
--- a/.werks/5112
+++ /dev/null
@@ -1,19 +0,0 @@
-Title: if.include: Fixed wrong handling of duplicate interfaces if "use alias" or "use desccription" is configured
-Level: 1
-Component: checks
-Class: fix
-Compatible: compat
-Edition: cre
-State: unknown
-Version: 1.5.0i1
-Date: 1502973584
-
-Within the rule {{Network Interface and Switch Port Discovery}}
-you are able to configure the service description to use the
-interface alias or description. Per default the index is used.
-If there are duplicate interfaces with same name, the interface
-index should be added.
-
-
-Unfortunately, the afore-mentioned mechanism was broken. This
-has been fixed.
diff --git a/checks/if.include b/checks/if.include
index a5d012c..d606a50 100644
--- a/checks/if.include
+++ b/checks/if.include
@@ -417,7 +417,7 @@ def inventory_if_common(info, has_nodeinfo = False):
# Prepare single interfaces
if not is_only_in_group:
- if item in global_seen:
+ if ifIndex in global_seen:
continue
if item in seen_items: # duplicate
Module: check_mk
Branch: master
Commit: 3ee6dad4161a51239e1ce5d1174b9defa7ec39cc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3ee6dad4161a51…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Aug 22 15:06:15 2017 +0200
Hacky workaround for spurious Jenkins failures.
Change-Id: I69e8c062b01e37908cfed53eda2d9a1cd73f3709
---
tests/testlib/__init__.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 4191da8..d166b88 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -1144,6 +1144,16 @@ class CMKWebSession(WebSession):
"Failed to activate %s: %r" % (site_id, status)
assert status["_time_ended"] > time_started
+ # HACK: Activating changes can involve an asynchronous(!) monitoring
+ # core restart/reload, so e.g. querying a Livestatus table immediately
+ # might not reflect the changes yet. The right way to handle this would
+ # be polling the "program_start" column of the "status" table until the
+ # reload is complete. But this will only work if there is an actual
+ # restart/reload involved, which we don't know here, only our caller.
+ # Ugly workaround: Wait a moment and hope for the best, wasting a few
+ # seconds is better than a false positive during testing... >:-P
+ time.sleep(2)
+
def get_regular_graph(self, hostname, service_description, graph_index, expect_error=False):
result = self._api_request("webapi.py?action=get_graph", {
Module: check_mk
Branch: master
Commit: 9ff3249217941ac31de529373f8a05ba2a2ad42c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9ff3249217941a…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Aug 21 16:13:50 2017 +0200
Added configuration files for auto-completion via clang.
Strictly speaking, the .clang_complete files are artifacts, because they
could be generated from Makefile.am, perhaps via compile_commands.json.
(BTW: Why on earth does clang_complete insist on its own creative home-grown
format when there is a perfectly fine, standardized format: clang's
compilation database compile_commands.json, invented just for tools like
this? >:-P Yet another instance of "not invented here"...) OTOH, their
content will change only very infrequently, and having some sane
configuration for editing right out of the box is very convenient.
Perhaps this is a tradeoff we might reconsider in the future...
Change-Id: I6afa3246b315ede31834f082ee7a842cfe61d447
---
livestatus/src/.clang_complete | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/livestatus/src/.clang_complete b/livestatus/src/.clang_complete
new file mode 100644
index 0000000..22f5fdd
--- /dev/null
+++ b/livestatus/src/.clang_complete
@@ -0,0 +1,7 @@
+-I.
+-I../..
+-I..
+-DHAVE_CONFIG_H
+-std=c++14
+-Wall
+-Wextra