Module: check_mk
Branch: master
Commit: de633c4dc8ab6e692aac062f570988512ccd6eb7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=de633c4dc8ab6e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 27 10:06:52 2013 +0200
Host-/Service-URLs in notificatios always link to the complete frameset now
---
modules/notify.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/notify.py b/modules/notify.py
index 944baa0..ab788a3 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -485,10 +485,12 @@ def notify_notify(context):
elif notify_mode == 'fake-host':
set_fake_env('host', context)
- context['HOSTURL'] =
'/check_mk/view.py?view_name=hoststatus&host=%s' %
urlencode(context['HOSTNAME'])
+ context['HOSTURL'] = '/check_mk/index.py?start_url=%s' % \
+ urlencode('view.py?view_name=hoststatus&host=%s' %
context['HOSTNAME'])
if context['WHAT'] == 'SERVICE':
- context['SERVICEURL'] =
'/check_mk/view.py?view_name=service&host=%s&service=%s' % \
- (urlencode(context['HOSTNAME']),
urlencode(context['SERVICEDESC']))
+ context['SERVICEURL'] = '/check_mk/index.py?start_url=%s' % \
+
urlencode('view.py?view_name=service&host=%s&service=%s' %
+ (context['HOSTNAME'],
context['SERVICEDESC']))
if notify_mode in [ 'fake-service', 'fake-host' ]:
sys.exit(call_notification_script(plugin, [], context, True))