Module: check_mk
Branch: master
Commit: 4b38bba9e7f40be6ca6310f4bd4215b8a0d1ef4f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4b38bba9e7f40b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Oct 2 17:52:41 2013 +0200
notification plugin mail: fix host notification by CMC
---
notifications/mail | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/notifications/mail b/notifications/mail
index b4e2589..6127843 100755
--- a/notifications/mail
+++ b/notifications/mail
@@ -390,7 +390,7 @@ def main():
context['SERVICELINK'] = '\nLink: %s' %
service_url
else:
context['LINKEDHOSTNAME'] = context['HOSTNAME']
- context['LINKEDSERVICEDESC'] = context['SERVICEDESC']
+ context['LINKEDSERVICEDESC'] = context.get('SERVICEDESC',
'')
context['HOSTLINK'] = ''
context['SERVICELINK'] = ''