Module: check_mk
Branch: master
Commit: d4b558e74d285e9fbb9093d3a6b87c9c4fb1ace0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d4b558e74d285e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 3 12:05:07 2016 +0100
Do not create crash dumps anymore when running with --debug
---
modules/check_mk_base.py | 2 +-
modules/discovery.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index de317e4..60484bc 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1430,9 +1430,9 @@ def do_all_checks_on_host(hostname, ipaddress, only_check_types =
None, fetch_ag
dont_submit = True
except Exception, e:
- result = 3, create_crash_dump(hostname, checkname, item, params,
description, info), []
if opt_debug:
raise
+ result = 3, create_crash_dump(hostname, checkname, item, params,
description, info), []
if not dont_submit:
# Now add information about the age of the data in the agent
diff --git a/modules/discovery.py b/modules/discovery.py
index 83898e3..e52dc73 100644
--- a/modules/discovery.py
+++ b/modules/discovery.py
@@ -331,10 +331,10 @@ def check_discovery(hostname, ipaddress=None):
raise
except Exception, e:
- output = create_crash_dump(hostname, "discovery", None, None,
"Check_MK Discovery", [])\
- .replace("Crash dump:\n", "Crash dump:\\n")
if opt_debug:
raise
+ output = create_crash_dump(hostname, "discovery", None, None,
"Check_MK Discovery", [])\
+ .replace("Crash dump:\n", "Crash dump:\\n")
# Honor rule settings for "Status of the Check_MK service". In case of
# a problem we assume a connection error here.
spec = exit_code_spec(hostname)