diff --git a/bots/send-nagios-notification b/bots/send-nagios-notification index fc41a59..3caa0ca 100755 --- a/bots/send-nagios-notification +++ b/bots/send-nagios-notification @@ -40,8 +40,8 @@ msg['content'] = '**%s**: %s is %s' % (opts.type, thing, opts.state) # We will be more conservative and handle just this one escape sequence. output = (opts.output + '\n' + opts.long_output.replace(r'\n', '\n')).strip() if output: - # Block-quote any command output. - msg['content'] += ('\n\n' + '\n'.join('> ' + ln for ln in output.splitlines())) + # Put any command output in a code block. + msg['content'] += ('\n\n~~~~\n' + output + "\n~~~~\n") client = humbug.Client( email = 'humbug+nagios@humbughq.com',