Module: check_mk
Branch: master
Commit: d661fd838a633d8d0dc208fb9413172fe628147a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d661fd838a633d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 23 14:10:44 2011 +0100
passive check reschedule: Waiting for wait_svc now
---
web/htdocs/actions.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/actions.py b/web/htdocs/actions.py
index 3d26902..20f76dd 100644
--- a/web/htdocs/actions.py
+++ b/web/htdocs/actions.py
@@ -51,19 +51,21 @@ def action_reschedule():
wait_svc = html.var("wait_svc", "")
if service:
+ cmd = "SVC"
what = "service"
spec = "%s;%s" % (host, service)
+
if wait_svc:
wait_spec = '%s;%s' % (host, wait_svc)
+ add_filter = "Filter: service_description = %s\n" % wait_svc
else:
wait_spec = spec
- cmd = "SVC"
- add_filter = "Filter: service_description = %s\n" % service
+ add_filter = "Filter: service_description = %s\n" % service
else:
+ cmd = "HOST"
what = "host"
spec = host
wait_spec = spec
- cmd = "HOST"
add_filter = ""
try: