Module: check_mk
Branch: master
Commit: 4e4baf55e68b570c53e87099e538b5fc6cd6137f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4e4baf55e68b57…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 10 12:43:16 2012 +0100
Check_MK: Replaced misleading error message when trying to inventorize unreachable snmp
hosts
---
modules/check_mk_base.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 348b4aa..b7b4db0 100755
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -371,7 +371,8 @@ def read_cache_file(relpath, max_cache_age):
raise MKGeneralException("Simulation mode and no cachefile present.")
if opt_no_tcp:
- raise MKGeneralException("Cache file '%s' missing or too old. TCP
disallowed by you." % cachefile)
+ raise MKGeneralException("Host is unreachable")
+ #Cache file '%s' missing or too old. TCP disallowed by you." %
cachefile)
def write_cache_file(relpath, output):