Module: check_mk
Branch: master
Commit: 6ff29d0bed06c8894e8742440b15ee3e36238892
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6ff29d0bed06c8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Oct 27 12:12:03 2014 +0100
Allow --profile in combination with --keepalive
---
modules/check_mk.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index ba2c2b4..1781abc 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -5560,6 +5560,10 @@ def do_check_keepalive():
(3, len(total_check_output), total_check_output))
keepalive_check_memory(num_checks, keepalive_fd)
+ # In case of profiling do just this one cycle and end afterwards
+ if g_profile:
+ output_profile()
+ sys.exit(0)
# Just one lines from stdin. But: make sure that