Page 1 of 1

Acknowledging via email - reply response not complete

Posted: Fri Jun 28, 2019 9:16 am
by jbpatric
Acknowledging an alert via email is awesome and is working for us but the email acknowledgement and comment are not formatting correctly.

Here are the details...
Receive an email notification.
Reply to that message with...ack and a comment
The alert is acknowledged

The acknowledgement email looks like this...
Email subject - ACKNOWLEDGEMENT Service Alert - %host%/%service% is %servicestate%
Message body -
---- Respond above this line ----

***** Nagios XI Alert *****

This host problem has been acknowledged by Jim Patrick with a comment of '

Notification Type: ACKNOWLEDGEMENT

Service: %service%
Host: %host%
Address: %hostaddress%
State: %servicestate%
Info:
%serviceoutput%
Date/Time: 2019-06-28 07:15:10

Respond: https://nagios.whatever/nagiosxi/?xiwin ... %26host%3D
Nagios URL: https://nagios.whatever/nagiosxi/

-----

To reply, keep the following data in your response email.

##NmQ3YzIyYTA1ODZhNTMwNFdzbmNUTWlad0grQUxibGovNzB2Snc9PQ==##
In the comment section of the acknowledged service it appears like this...
By Jim Patrick at 2019-06-28 10:08:03
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Adjusting the monitoring levels<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-seri
BUT, we also send notification emails to a Slack channel and those messages are formatting correctly.
From <nagios@whereever>
To SlackEmailAddress
Subject ** ACKNOWLEDGEMENT Service Alert: serername/CPU Usage is WARNING **
Date Today at 10:08 AM
***** Nagios *****

Notification Type: ACKNOWLEDGEMENT

Service: CPU Usage
Host: servername
Address: http://server.whatever
State: WARNING

Date/Time: Fri Jun 28 10:08:03 EDT 2019

Additional Info:

WARNING: Percent was 37.90 %

Re: Acknowledging via email - reply response not complete

Posted: Fri Jun 28, 2019 2:12 pm
by cdienger
Which version of XI is this? The 5.6.3 version should remove HTML tags.

Re: Acknowledging via email - reply response not complete

Posted: Fri Jun 28, 2019 8:50 pm
by jbpatric
We're running version 5.6.3

Re: Acknowledging via email - reply response not complete

Posted: Mon Jul 01, 2019 4:08 pm
by cdienger
Follow the steps in https://support.nagios.com/forum/viewto ... 22#p285948 to turn on some debug logging, reproduce the issue and provide the output.

Re: Acknowledging via email - reply response not complete

Posted: Tue Jul 02, 2019 6:34 am
by jbpatric
Here's the log generated after following your instructions. Had to zip it to upload.

Re: Acknowledging via email - reply response not complete

Posted: Wed Jul 03, 2019 1:30 pm
by cdienger
Thanks for pointing this out. We'll be making a change in 5.6.4 to address this.

Re: Acknowledging via email - reply response not complete

Posted: Mon Jul 08, 2019 6:41 am
by jbpatric
ok, thanks. I will try it out after the next release comes out.

Re: Acknowledging via email - reply response not complete

Posted: Tue Jul 09, 2019 7:08 am
by scottwilkerson
jbpatric wrote:ok, thanks. I will try it out after the next release comes out.
Great!

Locking thread