cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extended Email Plugin Not Working in Dynatrace 7.0

gaur_bharti
Guide

Hi Experts,

Recently we have migrated to Dynatrace 7.0 and installed extended Email Plugin in test environment.

I am getting the email notifications from plugin but not getting the dashboard report as attachment in a mail.

We tried using both HTTP & HTTPS Rest protocol in the extended email plugin but still no luck with it.

Moroever we're finding status code 401 on both of the protocol & attached the error log below for reference, Let me know if you have any fix for the same.

  1. 2017-06-2800:56:13 WARNING [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] setEmailBodyDashboards method: skip report 'TestEmailPlugin' because of the following ReportCreationException'com.dynatrace.diagnostics.plugins.extendedmailreport.exception.ReportCreationException exception occurred. Message = 'java.lang.RuntimeException exception occurred.Message='getStringFromUrl method: returned HTTP Response Code from the 'http://dynatrace-test.demo.com:8020/rest/management/reports/create/TestEmailPlugin?type=XLS' is '401' but should be 200.'; Stacktrace is '''; Stacktrace is ''
  2. 2017-06-2800:58:03 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] getStringFromUrl method: returned HTTP ResponseCodefrom the 'http://dynatrace-test.demo.com:8020/rest/management/reports/create/TestEmailPlugin?type=XLS'is'401' but should be 200
  3. 2017-06-2800:59:43 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] getStringFromUrl method: returned HTTP ResponseCodefrom the 'https://dynatrace-test.demo.com:8021/rest/management/reports/create/TestEmailPlugin?type=XLS'is'401' but should be 200.

  1. 2017-06-2800:59:43 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] getFileFromUrl method: java.lang.RuntimeException exception occurred.Message='getStringFromUrl method: returned HTTP Response Code from the 'https://dynatrace-test.demo.com:8021/rest/management/reports/create/TestEmailPlugin?type=XLS' is '401' but should be 200.'; Stacktrace is ''

Appreciate your quick response

Thanks

Bharti G.

5 REPLIES 5


Hi Bharti,


An HTTP Response Code of 401 indicates the user you have specified to does not have permissions to access the report or the password is incorrect, perhaps expired? You can test the report URL (https://dynatrace-test.demo.com:8021/rest/management/reports/create/TestEmailPlugin?type=XLS) in a web browser using the credentials you have provided the plugin in the "dynaTrace Server User" and "dynaTrace User Password" configuration options.

Items to Check:

  1. Validate the password you have entered for the user is correct
  2. Ensure the User has proper permissions to access to:
    1. Web Reporting Functionality, User must have these permissions specified at the Role level: Web Service Interface Access and Generate Dashboard Reports via Web Service
    2. Dashboard: User's Group must have [read] access to the Dashboard TestEmailPlugin
    3. System Profile: User's Group must have read access to the System Profile data
      1. This is unlikely the issue

gaur_bharti
Guide
@Markie S.

Thanks a lot for your response. I am getting dashboard as an attachment now. One more concern i do have. As of now we are only able to add the dashboard we have already created but is there any provision by which we we can get the snapshot of those purepaths which has caused that alert. I mean to say that can we get dynamic dashboard according to corresponding alert. because its difficult to create dashboard for these many alert issues.

Appreciate your help.

Thanks

Bharti Gaur


Hi Bharti,


With the Extended Email Plugin, try experimenting with the Reports filtering by Agent Name, Agent Group, and Custom Timeframe. I would also recommend looking into the out of the box Stored Session Action Plugin.

gaur_bharti
Guide

@Markie S. I really appreciate your quick response 🙂

Do we need to install Stored Session Action Plugin? to use this with extended email.

It would be great if anything is there which could get purepath details as a dashboard while triggering an alert.

Stored Session Action Plugin is an out of the box action which works separately from the Extended Email Plugin. It would store a session locally on your Dynatrace Server for the timeframe of the incident, this plugin is not for reporting just capturing PurePaths at the time of the incident.