[checkmk-commits] Check_MK Git: check_mk: cmc: Fixed update of services when host has just been added and fist performed check was the discovery check

Lars Michelsen lm at mathias-kettner.de
Tue Apr 14 16:46:23 CEST 2015


Module: check_mk
Branch: master
Commit: 9d3c2c7e7d3087507ab2f87e1ccee80d8946fcc9
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9d3c2c7e7d3087507ab2f87e1ccee80d8946fcc9

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Tue Apr 14 16:46:15 2015 +0200

cmc: Fixed update of services when host has just been added and fist performed check was the discovery check

---

 modules/check_mk.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/check_mk.py b/modules/check_mk.py
index f8709e2..a89e404 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -892,7 +892,7 @@ def get_check_table(hostname, remove_duplicates=False, use_cache=True, world='co
     global g_multihost_checks
 
     # speed up multiple lookup of same host
-    if use_cache and hostname in g_check_table_cache:
+    if not skip_autochecks and use_cache and hostname in g_check_table_cache:
         if remove_duplicates and is_dual_host(hostname):
             return remove_duplicate_checks(g_check_table_cache[hostname])
         else:
@@ -993,7 +993,7 @@ def get_check_table(hostname, remove_duplicates=False, use_cache=True, world='co
             if d in all_descr:
                 deps.append(d)
 
-    if use_cache:
+    if not skip_autochecks and use_cache:
         g_check_table_cache[hostname] = check_table
 
     if remove_duplicates and is_dual_host(hostname):



More information about the checkmk-commits mailing list