Module: check_mk
Branch: master
Commit: 0da4cf21f99776bc43cb4e7bd8ec98b03c766c94
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0da4cf21f99776…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 25 16:28:59 2013 +0100
FIX: fix passive commands without freshness
---
modules/check_mk.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index a7ec05e..07fa1b4 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1939,6 +1939,8 @@ define service {
" freshness_threshold\t\t%d\n" % (60 *
entry["freshness"]["interval"])
command_line = "echo %s && exit %d" % (
quote_shell_string(entry["freshness"]["output"]),
entry["freshness"]["state"])
+ else:
+ freshness = ""
custom_commands_to_define.add(command_name)